A bit better logging of errors in commandhandler
This commit is contained in:
parent
3f168a21f1
commit
ecdc744769
@ -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);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user