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
|
@ -70,8 +70,14 @@ namespace Geekbot.Core.ErrorHandling
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
await context.Channel.SendMessageAsync("Something went really really wrong here");
|
try
|
||||||
_logger.Error(LogSource.Geekbot, "Errorception", ex);
|
{
|
||||||
|
await context.Channel.SendMessageAsync("Something went really really wrong here");
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
_logger.Error(LogSource.Geekbot, "Errorception", ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue