Make the ErrorHandler more resilient in case an exception is thrown during the error handling
This commit is contained in:
parent
ce1153a0e2
commit
81373b7614
1 changed files with 8 additions and 2 deletions
|
@ -69,11 +69,17 @@ namespace Geekbot.Core.ErrorHandling
|
|||
ReportExternal(e, errorObj);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
try
|
||||
{
|
||||
await context.Channel.SendMessageAsync("Something went really really wrong here");
|
||||
}
|
||||
finally
|
||||
{
|
||||
_logger.Error(LogSource.Geekbot, "Errorception", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ReportExternal(Exception e, MessageDto errorObj)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue