Commit dec5428d8136bc2c630d316b725a235ff79b002e

Authored by Josh Klontz
1 parent 1118137d

abort on parse error

Showing 1 changed file with 1 additions and 1 deletions
openbr/plugins/gallery.cpp
@@ -357,7 +357,7 @@ class jsonGallery : public BinaryGallery @@ -357,7 +357,7 @@ class jsonGallery : public BinaryGallery
357 QJsonParseError error; 357 QJsonParseError error;
358 File file = QJsonDocument::fromJson(gallery.readLine(), &error).object().toVariantMap(); 358 File file = QJsonDocument::fromJson(gallery.readLine(), &error).object().toVariantMap();
359 if (error.error != QJsonParseError::NoError) 359 if (error.error != QJsonParseError::NoError)
360 - qDebug() << error.errorString(); 360 + qFatal("%s\n", qPrintable(error.errorString()));
361 return file; 361 return file;
362 } 362 }
363 363