mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Backwards compatibility ensured
This commit is contained in:
@@ -587,7 +587,9 @@ QJsonObject JsonConnection::sendMessage(const QJsonObject & message)
|
||||
QJsonDocument reply = QJsonDocument::fromJson(serializedReply ,&error);
|
||||
if (error.error != QJsonParseError::NoError)
|
||||
{
|
||||
throw std::runtime_error("Error while parsing reply: invalid json");
|
||||
throw std::runtime_error(
|
||||
std::string("Error while parsing json reply: ")
|
||||
+ error.errorString().toStdString() );
|
||||
}
|
||||
|
||||
return reply.object();
|
||||
|
Reference in New Issue
Block a user