From d1fcac7411bd0a686c3ccaa7416d98dc197c4e59 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 6 Apr 2025 19:29:29 +0400 Subject: feat: lua execution error --- bot/src/handlers.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'bot/src/handlers.cpp') 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()); } } -- cgit v1.2.3