diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-06 12:41:27 +0100 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-05-06 19:20:17 +0300 |
commit | cac83398cf230dfaa5559b94bd7c75b7dcf03940 (patch) | |
tree | 509ad513c9e443d51caf339068cf0d195518e5c4 /test/sprite/sprite_parser.test.cpp | |
parent | e69efb996d32c86f00b08878a61c6f0a47c81932 (diff) | |
download | qtlocation-mapboxgl-cac83398cf230dfaa5559b94bd7c75b7dcf03940.tar.gz |
[core] show line and col instead of offset when JSON parsing failsupstream/json-parse-line-col
Diffstat (limited to 'test/sprite/sprite_parser.test.cpp')
-rw-r--r-- | test/sprite/sprite_parser.test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sprite/sprite_parser.test.cpp b/test/sprite/sprite_parser.test.cpp index 529e4c75e8..3e97ab9437 100644 --- a/test/sprite/sprite_parser.test.cpp +++ b/test/sprite/sprite_parser.test.cpp @@ -289,7 +289,7 @@ TEST(Sprite, SpriteParsingInvalidJSON) { FAIL() << "Expected exception"; } catch (std::runtime_error& err) { EXPECT_STREQ( - "Failed to parse JSON: Missing a closing quotation mark in string. at offset 14", + "Failed to parse JSON on line 1 col 14: Missing a closing quotation mark in string.", err.what()); } } |