From 320c31c0566dc6586ed86de9ad474aa623bc7551 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Thu, 24 Oct 2019 16:34:22 +0300 Subject: [PATCH] [core] Tell what layer is failing on parsing errors It will make it easier for debugging style issues. --- src/mbgl/style/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/style/parser.cpp b/src/mbgl/style/parser.cpp index b90de3e9b97..4d008caa775 100644 --- a/src/mbgl/style/parser.cpp +++ b/src/mbgl/style/parser.cpp @@ -260,7 +260,7 @@ void Parser::parseLayer(const std::string& id, const JSValue& value, std::unique conversion::Error error; optional> converted = conversion::convert>(value, error); if (!converted) { - Log::Warning(Event::ParseStyle, error.message); + Log::Warning(Event::ParseStyle, "error parsing layer '%s': '%s'", id.c_str(), error.message.c_str()); return; } layer = std::move(*converted);