diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2016-05-19 15:40:55 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2016-06-17 16:11:11 +0000 |
commit | 34c24ceb1ffce964c9f139d84b6b271bd2e45c33 (patch) | |
tree | 7cc3887453c5dec0320da648f1b48225ea4b7011 /tests/auto/tools | |
parent | a11ced49810d5b454876f6ea201b89ac3734d3fe (diff) |
Improve error reporting when parsing JSON files
At least report the error string and the file offset where
the error happened.
Change-Id: Iaa1733593b8af2a7a52b67c0f495731f045d2c11
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'tests/auto/tools')
-rw-r--r-- | tests/auto/tools/qmakelib/evaltest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/tools/qmakelib/evaltest.cpp b/tests/auto/tools/qmakelib/evaltest.cpp index 4cefa906d3..d4959a4f63 100644 --- a/tests/auto/tools/qmakelib/evaltest.cpp +++ b/tests/auto/tools/qmakelib/evaltest.cpp @@ -2162,7 +2162,7 @@ void tst_qmakelib::addTestFunctions(const QString &qindir) << "jsontext = not good\n" "parseJson(jsontext, json): OK = 1" << "OK = UNDEF" - << "" + << "##:2: Error parsing json at offset 1: illegal value" << true; QTest::newRow("parseJson(): bad number of arguments") |