Skip to content

Commit cf4d160

Browse files
Merge pull request #1678 from St0fF-NPL-ToM/master
Update json.cpp
2 parents 3096891 + 3f12dd4 commit cf4d160

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vsg/io/json.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ ref_ptr<Object> json::_read(std::istream& fin, ref_ptr<const Options>) const
7575
warn("Parsing error, could not find opening { or [.");
7676
}
7777

78+
if ( !parser.warnings.empty() )
79+
{
80+
warn( "JSONParser recorded following warnings:" );
81+
for ( auto w : parser.warnings )
82+
warn( "\t", w );
83+
}
7884
return result;
7985
}
8086

0 commit comments

Comments
 (0)