From 2fb0ddf70923c39085dc6bd015679135dcfd638d Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 16 Feb 2020 13:45:06 -0600 Subject: [PATCH] [nostalgia/studio] Fix JSON errors to only display when error occurs --- src/nostalgia/studio/lib/json_read.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);