Check correct string to ignore errors *facepalm*
This commit is contained in:
parent
8d23420031
commit
46696549d7
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ namespace Geekbot.net.Lib
|
|||
{
|
||||
var errorString = errorMessage == "def" ? _translation.GetString(Context.Guild.Id, "errorHandler", "SomethingWentWrong") : errorMessage;
|
||||
var errorObj = SimpleConextConverter.ConvertContext(Context);
|
||||
if (errorObj.Message.Content.Contains("50007")) return;
|
||||
if (errorObj.Message.Content.Contains("50013")) return;
|
||||
if (e.Message.Contains("50007")) return;
|
||||
if (e.Message.Contains("50013")) return;
|
||||
_logger.Error("Geekbot", "An error ocured", e, errorObj);
|
||||
if (!string.IsNullOrEmpty(errorMessage))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue