summaryrefslogtreecommitdiff
path: root/bot/src/handlers.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-12-14 00:20:22 +0500
committerilotterytea <iltsu@alright.party>2024-12-14 00:20:22 +0500
commit9c449ecfff94782e117741bc249ee15ff3857367 (patch)
treed2777f2cbd7e882283a6522c75e945ecd49ee74d /bot/src/handlers.cpp
parentb4f5797a7d40f4f8451d8e49c0d696c51a81327d (diff)
upd: it's dangerous to send exception reasons to chats
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());
}
}