From 01b552e2a27419f12f7f3e5a1e8e56c7d1c26682 Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Tue, 29 Apr 2025 11:34:30 +0200 Subject: [PATCH] fix: Format exception message --- llmcore/RequestHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llmcore/RequestHandler.cpp b/llmcore/RequestHandler.cpp index 0949895..aacb151 100644 --- a/llmcore/RequestHandler.cpp +++ b/llmcore/RequestHandler.cpp @@ -58,7 +58,8 @@ void RequestHandler::sendLLMRequest(const LLMConfig &config, const QJsonObject & try { handleLLMResponse(reply, request, config); } catch (const std::exception &e) { - LOG_MESSAGE(QString("Exception in readyRead handler: %1").arg(e.what())); + LOG_MESSAGE( + QString("Exception in readyRead handler: %1").arg(QString::fromStdString(e.what()))); } catch (...) { LOG_MESSAGE("Unknown exception in readyRead handler"); }