diff options
| author | ilotterytea <iltsu@alright.party> | 2024-12-14 00:20:22 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-12-14 00:20:22 +0500 |
| commit | 9c449ecfff94782e117741bc249ee15ff3857367 (patch) | |
| tree | d2777f2cbd7e882283a6522c75e945ecd49ee74d | |
| parent | b4f5797a7d40f4f8451d8e49c0d696c51a81327d (diff) | |
upd: it's dangerous to send exception reasons to chats
| -rw-r--r-- | bot/src/handlers.cpp | 5 |
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()); } } |
