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

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;
}
}