mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
feat: user-readable error for TaskCanceledException
This commit is contained in:
parent
2b5fab9689
commit
980c60469c
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?
|
// 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?");
|
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>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue