add error message for ipfs fail

pull/11/head
Konstantine Tsafatinos 2023-07-21 17:04:41 -04:00
parent 4260187208
commit 82ea4d57c4
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ class SkynetDiscordFrontend:
if not resp or resp.status_code != 200: if not resp or resp.status_code != 200:
logging.error(f'couldn\'t get ipfs hosted image at {ipfs_link}!') logging.error(f'couldn\'t get ipfs hosted image at {ipfs_link}!')
embed.add_field(name='Error', value=f'couldn\'t get ipfs hosted image [**here**]({ipfs_link})!')
await message.edit(embed=embed, view=SkynetView(self)) await message.edit(embed=embed, view=SkynetView(self))
else: else:
logging.info(f'success! sending generated image') logging.info(f'success! sending generated image')