diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-06 19:29:29 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-06 19:29:29 +0400 |
| commit | d1fcac7411bd0a686c3ccaa7416d98dc197c4e59 (patch) | |
| tree | 5ea919dc3f55f25b36dba73bc17ab02e6461dccf /bot/src/handlers.cpp | |
| parent | d1f8efef4a68f81ca104e9b8f51e04497f3bd8aa (diff) | |
feat: lua execution error
Diffstat (limited to 'bot/src/handlers.cpp')
| -rw-r--r-- | bot/src/handlers.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bot/src/handlers.cpp b/bot/src/handlers.cpp index fe8c73c..42e1090 100644 --- a/bot/src/handlers.cpp +++ b/bot/src/handlers.cpp @@ -12,6 +12,7 @@ #include "commands/command.hpp" #include "commands/request.hpp" #include "commands/request_util.hpp" +#include "commands/response_error.hpp" #include "constants.hpp" #include "cpr/api.h" #include "cpr/multipart.h" @@ -55,13 +56,7 @@ namespace bot::handlers { return; } } catch (const std::exception &e) { - std::string line = - bundle.localization - .get_formatted_line(request.value(), - loc::LineId::ErrorSomethingWentWrong, {}) - .value(); - - bundle.irc_client.say(message.source.login, line); + bundle.irc_client.say(message.source.login, e.what()); log::error("PrivMsg/" + request->command_id, e.what()); } } |
