summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2022-10-19 14:37:12 -0300
committerAndrés <andmarti@gmail.com>2022-10-19 14:37:12 -0300
commitda0a49bbf66f9657e0cb727fe38679388024a602 (patch)
tree214f59aa7d40ca043f948e3cd904bdfd37339c6c
parent2c35058f6ee26a67d9d7585c1fbcf4c4c1ea9579 (diff)
added more detailed error in gram.y
-rwxr-xr-xsrc/gram.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gram.y b/src/gram.y
index 299975f..606181c 100755
--- a/src/gram.y
+++ b/src/gram.y
@@ -1238,7 +1238,7 @@ command:
| // nothing
| error {
- sc_error("syntax error");
+ sc_error("syntax error: %s", line);
line[0]='\0';
//linelim = 0;
//yyparse();