Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
Fix comparison text for test.
  • Loading branch information
abellgithub committed Jul 30, 2019
1 parent cca740b commit 20f8ac3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pdal/PipelineReaderJSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ void PipelineReaderJSON::readPipeline(std::istream& input)
}
catch (NL::json::parse_error& err)
{
// Look for a right bracket -- this indicates the start of the
// actual message from the parse error.
std::string s(err.what());
auto pos = s.find("]");
if (pos != std::string::npos)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/apps/pcpipelineTestJSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ TEST(json, pipeline_verify)
run_pipeline("pipeline/nonstreamable.json", "--validate",
"\"streamable\": false");
run_pipeline("pipeline/invalid1.json", "--validate",
"Unable to parse");
"unexpected string literal");
run_pipeline("pipeline/invalid2.json", "--validate",
"Unexpected argument");
run_pipeline("pipeline/streamable.json", "-v Debug",
Expand Down

0 comments on commit 20f8ac3

Please sign in to comment.