mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-01-19 09:02:32 +00:00
fix error message about failed description calls
This commit is contained in:
parent
1c18965a12
commit
e90a7d70c4
@ -69,8 +69,9 @@ namespace CompatBot.Commands
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Config.Log.Warn(e, "Failed to generate image description");
|
||||
await ctx.RespondAsync("Failed to generate image description, probably because image is too large (dimensions or file size)").ConfigureAwait(false);
|
||||
Config.Log.Warn(e, "Failed to get link to the previously posted image");
|
||||
await ctx.RespondAsync("Sorry chief, can't find any images in the recent posts").ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@ -112,6 +113,7 @@ namespace CompatBot.Commands
|
||||
catch (Exception e)
|
||||
{
|
||||
Config.Log.Warn(e, "Failed to get image description");
|
||||
await ctx.RespondAsync("Failed to generate image description, probably because image is too large (dimensions or file size)").ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user