Browse Source

repl error messages

master
Martin Dørum 8 months ago
parent
commit
979c4627a5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cmd/main.c

+ 1
- 1
cmd/main.c View File

@@ -112,7 +112,7 @@ static int repl() {

struct l2_parse_error err;
if (l2_parse_program(&lexer, &gen, &err) < 0) {
fprintf(stderr, "Parse error: %s\n", err.message);
fprintf(stderr, "Parse error: %s\n -- %s\n", err.message, line);
l2_parse_error_free(&err);
w.len = prev_len;
} else if (w.len > 0) {

Loading…
Cancel
Save