From 3f12dd48da7a86d1b7ed0c7ee23c31e031b02d21 Mon Sep 17 00:00:00 2001 From: St0fF-NPL-ToM Date: Sat, 14 Feb 2026 19:16:16 +0100 Subject: [PATCH] Update json.cpp JSONparser collects messages, but at the end they were dumped to nirvana. Let's output those as warnings! --- src/vsg/io/json.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vsg/io/json.cpp b/src/vsg/io/json.cpp index 6cb9af6831..0476c1c87d 100644 --- a/src/vsg/io/json.cpp +++ b/src/vsg/io/json.cpp @@ -75,6 +75,12 @@ ref_ptr json::_read(std::istream& fin, ref_ptr) const warn("Parsing error, could not find opening { or [."); } + if ( !parser.warnings.empty() ) + { + warn( "JSONParser recorded following warnings:" ); + for ( auto w : parser.warnings ) + warn( "\t", w ); + } return result; }