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 /src/mbgl/style/style_impl.cpp | |
parent | e69efb996d32c86f00b08878a61c6f0a47c81932 (diff) | |
download | qtlocation-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 'src/mbgl/style/style_impl.cpp')
-rw-r--r-- | src/mbgl/style/style_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/style_impl.cpp b/src/mbgl/style/style_impl.cpp index fde5aa632d..8aa5f0c44b 100644 --- a/src/mbgl/style/style_impl.cpp +++ b/src/mbgl/style/style_impl.cpp @@ -77,7 +77,7 @@ void Style::Impl::parse(const std::string& json_) { Parser parser; if (auto error = parser.parse(json_)) { - std::string message = "Failed to parse style: " + util::toString(error); + std::string message = "Failed to parse style " + util::toString(error); Log::Error(Event::ParseStyle, message.c_str()); observer->onStyleError(std::make_exception_ptr(util::StyleParseException(message))); observer->onResourceError(error); |