From c1e0765d92aa203ff553a68ef3d8e5ccb01ab09e Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 21 Jul 2024 16:12:17 -0400 Subject: [PATCH] cwObject.cpp : Generate an error message when a token is not recognized by the string->object parser. --- cwObject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cwObject.cpp b/cwObject.cpp index 871766e..6285432 100644 --- a/cwObject.cpp +++ b/cwObject.cpp @@ -941,7 +941,8 @@ cw::rc_t cw::objectFromString( const char* s, object_t*& objRef ) if( lexId == lex::kErrorLexTId ) { - goto errLabel; + rc = cwLogError(kSyntaxErrorRC,"A lexical element was not recognized."); + goto errLabel; } // if the root has only one child then make the child the root