Change qFatal to qWarning
authorAlan Alpert <416365416c@gmail.com>
Thu, 6 Dec 2012 22:17:47 +0000 (14:17 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 6 Dec 2012 22:20:25 +0000 (23:20 +0100)
While the process should terminate immediately with a non-zero exit code
on component error, it does that in the next line already. The main
difference is dropping the backtrace, which is not useful in this case.

Change-Id: I866ea00e62cb9d1b7c506b9819cd9bb2750ac81f
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
tools/qmlscene/main.cpp

index 87a577b..6a0d04b 100644 (file)
@@ -472,7 +472,7 @@ int main(int argc, char ** argv)
             QObject::connect(&engine, SIGNAL(quit()), QCoreApplication::instance(), SLOT(quit()));
             component->loadUrl(options.file);
             if ( !component->isReady() ) {
-                qFatal("%s", qPrintable(component->errorString()));
+                qWarning("%s", qPrintable(component->errorString()));
                 return -1;
             }