Add invalid JSON to error message

If the schema parsing fails due to an error, add the actual JSON to the
error string. This helps solve any problems that might occur due to
malformed JSON on the sending end.
This commit is contained in:
Markus Mäkelä 2019-02-04 20:22:23 +02:00
parent cf4724d128
commit d8b9bcfdd9
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -427,6 +427,8 @@ bool Connection::read_schema()
{
m_error = "Failed to parse JSON: ";
m_error += err.text;
m_error += ". Data received so far: ";
m_error += row;
}
}