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