fix: Format exception message

This commit is contained in:
Petr Mironychev
2025-04-29 11:34:30 +02:00
parent 1156b724f0
commit 01b552e2a2

View File

@ -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");
}