Improve error handling and reporting after command rewrite

This commit is contained in:
Ske
2019-10-22 19:31:40 +02:00
parent 284e8eb95a
commit 53ae0e3d70
3 changed files with 57 additions and 4 deletions

View File

@@ -86,6 +86,11 @@ namespace PluralKit.Bot.CommandSystem
{
await Reply($"{Emojis.Error} {e.Message}");
}
catch (TimeoutException e)
{
// Got a complaint the old error was a bit too patronizing. Hopefully this is better?
await Reply($"{Emojis.Error} Operation timed out, sorry. Try again, perhaps?");
}
}
public async Task<IUser> MatchUser()