summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-03-27 12:23:10 -0400
committerKevin Newton <kddnewton@gmail.com>2024-03-27 13:03:11 -0400
commita69f0047cb489c136001937442c1d2ffd8ea1dd7 (patch)
tree5e391c60daf4913a03ddae4ac2ab6ed521bd4967
parent9b816e674a4ecadde047212827e3bbe87cd61345 (diff)
[PRISM] Use new error formatting API
-rw-r--r--prism_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prism_compile.c b/prism_compile.c
index aec2f80f41..0ac931b59b 100644
--- a/prism_compile.c
+++ b/prism_compile.c
@@ -8398,7 +8398,7 @@ pm_parse_process_error(const pm_parse_result_t *result)
pm_buffer_append_string(&buffer, "syntax errors found\n", 20);
if (valid_utf8) {
- pm_parser_errors_format(&result->parser, &buffer, rb_stderr_tty_p());
+ pm_parser_errors_format(&result->parser, &result->parser.error_list, &buffer, rb_stderr_tty_p(), true);
}
else {
const pm_string_t *filepath = &result->parser.filepath;