summaryrefslogtreecommitdiff
path: root/bot/src/handlers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/handlers.cpp')
-rw-r--r--bot/src/handlers.cpp9
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());
}
}