mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat: user-readable error for TaskCanceledException
This commit is contained in:
parent
7608ec02fd
commit
1d50022d6d
1 changed files with 5 additions and 0 deletions
|
|
@ -138,6 +138,11 @@ public class Context
|
|||
// 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?");
|
||||
}
|
||||
catch (TaskCanceledException)
|
||||
{
|
||||
// HTTP timeouts...
|
||||
await Reply($"{Emojis.Error} Operation timed out, please try again later.");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue