Skip to content

Commit

Permalink
If we have JSON parsing errors, actually print the json filename
Browse files Browse the repository at this point in the history
  • Loading branch information
aras-p committed Oct 25, 2023
1 parent 0605b0a commit 5f62ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BuildEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ bool ParseBuildEvents(BuildEventsParser* parser, const std::string& fileName)
auto error = p.load(fileName).get(doc);
if (error)
{
printf("%sWARN: JSON parse error %s.%s\n", col::kYellow, error_message(error), col::kReset);
printf("%sWARN: JSON parse error in %s: %s.%s\n", col::kYellow, fileName.c_str(), error_message(error), col::kReset);
return false;
}

Expand Down

0 comments on commit 5f62ce8

Please sign in to comment.