From cac83398cf230dfaa5559b94bd7c75b7dcf03940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Wed, 6 Mar 2019 12:41:27 +0100 Subject: [core] show line and col instead of offset when JSON parsing fails --- src/mbgl/style/style_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mbgl/style/style_impl.cpp') 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); -- cgit v1.2.1