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.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/src/handlers.cpp b/bot/src/handlers.cpp
index 00c815f..fe8c73c 100644
--- a/bot/src/handlers.cpp
+++ b/bot/src/handlers.cpp
@@ -57,11 +57,12 @@ namespace bot::handlers {
} catch (const std::exception &e) {
std::string line =
bundle.localization
- .get_formatted_line(request.value(), loc::LineId::ErrorTemplate,
- {e.what()})
+ .get_formatted_line(request.value(),
+ loc::LineId::ErrorSomethingWentWrong, {})
.value();
bundle.irc_client.say(message.source.login, line);
+ log::error("PrivMsg/" + request->command_id, e.what());
}
}