[akonadi] autotests/libs/testrunner: Improve error handling from akonaditest, print path to config file.

David Faure null at kde.org
Fri Jan 13 08:23:35 GMT 2017


Git commit 853650624569e4f4e7cab2e0ec535ad1597793ae by David Faure.
Committed on 13/01/2017 at 08:02.
Pushed by dfaure into branch 'master'.

Improve error handling from akonaditest, print path to config file.

In kdepim-runtime/resources/maildir/autotests it's trying to parse
maildir.js as an XML file !?!?

CCMAIL: kde-pim at kde.org

M  +1    -1    autotests/libs/testrunner/config.cpp

https://commits.kde.org/akonadi/853650624569e4f4e7cab2e0ec535ad1597793ae

diff --git a/autotests/libs/testrunner/config.cpp b/autotests/libs/testrunner/config.cpp
index e1832784b..994a17111 100644
--- a/autotests/libs/testrunner/config.cpp
+++ b/autotests/libs/testrunner/config.cpp
@@ -57,7 +57,7 @@ void Config::readConfiguration(const QString &configfile)
 
     QString errorMsg;
     if (!doc.setContent(&file, &errorMsg)) {
-        qFatal("unable to parse config file: %s", qPrintable(errorMsg));
+        qFatal("unable to parse config file %s: %s", qPrintable(configfile), qPrintable(errorMsg));
     }
 
     const QDomElement root = doc.documentElement();



More information about the kde-pim mailing list