summaryrefslogtreecommitdiff
path: root/test/style/source.test.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-06 12:41:27 +0100
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-05-06 19:20:17 +0300
commitcac83398cf230dfaa5559b94bd7c75b7dcf03940 (patch)
tree509ad513c9e443d51caf339068cf0d195518e5c4 /test/style/source.test.cpp
parente69efb996d32c86f00b08878a61c6f0a47c81932 (diff)
downloadqtlocation-mapboxgl-upstream/json-parse-line-col.tar.gz
[core] show line and col instead of offset when JSON parsing failsupstream/json-parse-line-col
Diffstat (limited to 'test/style/source.test.cpp')
-rw-r--r--test/style/source.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/style/source.test.cpp b/test/style/source.test.cpp
index f0ff1f81b4..9caba10a3f 100644
--- a/test/style/source.test.cpp
+++ b/test/style/source.test.cpp
@@ -130,7 +130,7 @@ TEST(Source, LoadingCorrupt) {
test.styleObserver.sourceError = [&] (Source& source, std::exception_ptr error) {
EXPECT_EQ("source", source.getID());
- EXPECT_EQ("Invalid value. at offset 0", util::toString(error));
+ EXPECT_EQ("on line 1 col 0: Invalid value.", util::toString(error));
test.end();
};