Ignore error 50007 and 50013
This commit is contained in:
parent
91d178049b
commit
ff1619a62f
1 changed files with 3 additions and 1 deletions
|
@ -42,6 +42,8 @@ namespace Geekbot.net.Lib
|
||||||
{
|
{
|
||||||
var errorString = errorMessage == "def" ? _translation.GetString(Context.Guild.Id, "errorHandler", "SomethingWentWrong") : errorMessage;
|
var errorString = errorMessage == "def" ? _translation.GetString(Context.Guild.Id, "errorHandler", "SomethingWentWrong") : errorMessage;
|
||||||
var errorObj = SimpleConextConverter.ConvertContext(Context);
|
var errorObj = SimpleConextConverter.ConvertContext(Context);
|
||||||
|
if (errorObj.Message.Content.Contains("50007")) return;
|
||||||
|
if (errorObj.Message.Content.Contains("50013")) return;
|
||||||
_logger.Error("Geekbot", "An error ocured", e, errorObj);
|
_logger.Error("Geekbot", "An error ocured", e, errorObj);
|
||||||
if (!string.IsNullOrEmpty(errorMessage))
|
if (!string.IsNullOrEmpty(errorMessage))
|
||||||
{
|
{
|
||||||
|
@ -49,7 +51,7 @@ namespace Geekbot.net.Lib
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_raven == null) return;
|
if (_raven == null) return;
|
||||||
|
|
||||||
var sentryEvent = new SentryEvent(e)
|
var sentryEvent = new SentryEvent(e)
|
||||||
{
|
{
|
||||||
Tags =
|
Tags =
|
||||||
|
|
Loading…
Reference in a new issue