A bit better logging of errors in commandhandler

This commit is contained in:
Kwoth 2016-09-30 17:24:25 +02:00
parent 3f168a21f1
commit ecdc744769

View File

@ -101,17 +101,11 @@ namespace NadekoBot.Services
} }
} }
} }
catch (InvalidOperationException ex) catch (Exception ex)
{ {
Console.WriteLine(ex); _log.Warn(ex, "Error in CommandHandler");
} if(ex.InnerException != null)
catch (SqliteException ex) _log.Warn(ex.InnerException, "Inner Exception of the error in CommandHandler");
{
Console.WriteLine(ex.InnerException);
}
catch (HttpException ex)
{
Console.WriteLine(ex);
} }
}); });