From dec5428d8136bc2c630d316b725a235ff79b002e Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Fri, 11 Jul 2014 09:47:04 -0400 Subject: [PATCH] abort on parse error --- openbr/plugins/gallery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index aeed752..96367c7 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -357,7 +357,7 @@ class jsonGallery : public BinaryGallery QJsonParseError error; File file = QJsonDocument::fromJson(gallery.readLine(), &error).object().toVariantMap(); if (error.error != QJsonParseError::NoError) - qDebug() << error.errorString(); + qFatal("%s\n", qPrintable(error.errorString())); return file; } -- libgit2 0.21.4