Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Tell what layer is failing on parsing errors #15856

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mbgl/style/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ void Parser::parseLayer(const std::string& id, const JSValue& value, std::unique
conversion::Error error;
optional<std::unique_ptr<Layer>> converted = conversion::convert<std::unique_ptr<Layer>>(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);
Expand Down