mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
AppTests
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using Govor.ConsoleClient.Services.Interfaces;
|
||||
|
||||
namespace Govor.ConsoleClient.Services.Middleware;
|
||||
|
||||
public class ExceptionHandlingMiddleware : ICommandMiddleware
|
||||
@@ -17,7 +19,7 @@ public class ExceptionHandlingMiddleware : ICommandMiddleware
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error($"Произошла ошибка при выполнении команды '{context.Route}': {ex.Message}");
|
||||
_logger.Error($"Произошла ошибка при выполнении команды '{context?.Route}': {ex.Message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user