diff --git a/src/nostalgia/studio/lib/json_read.hpp b/src/nostalgia/studio/lib/json_read.hpp index c5215810..8f94ad2d 100644 --- a/src/nostalgia/studio/lib/json_read.hpp +++ b/src/nostalgia/studio/lib/json_read.hpp @@ -93,8 +93,8 @@ template ox::Error readJson(QString json, T *dest) { QJsonParseError err; auto obj = QJsonDocument::fromJson(json.toUtf8(), &err).object(); - qDebug() << "JSON parsing error:" << err.errorString(); if (err.error) { + qDebug() << "JSON parsing error:" << err.errorString(); return OxError(1); } JsonReader rdr(obj);