sync
authorAlan <alan@roojs.com>
Fri, 16 Feb 2024 06:14:12 +0000 (14:14 +0800)
committerAlan <alan@roojs.com>
Fri, 16 Feb 2024 06:14:12 +0000 (14:14 +0800)
roojspacker/ScopeParser.vala

index 616fd23..ea58d87 100644 (file)
@@ -700,7 +700,14 @@ namespace JSDOC {
                                                                                TokenKeyMap val = token.props.get(k);
                                                                                
                                                                                if (val == null) {
-                                                                                       print("failed  to get %s val from token %s\n", k, token.asString());
+                                                                                       this.packer.logError(
+                                                                                               Packer.ResultType.warn,
+                                                                                               this.filename,
+                                                                                               token.line,
+                                                                                               "could not get '" + k+ "'  but got token " + token.asString()
+                                                                                       );
+                                                                               
+                                                                                       //print("failed  to get %s val from token %s\n", k, token.asString());
                                                                                        continue;                                                                               
                                                                                }