fix error message about failed description calls

This commit is contained in:
13xforever 2020-03-10 00:55:35 +05:00
parent 1c18965a12
commit e90a7d70c4

View File

@ -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);
}
}
}