From a69f0047cb489c136001937442c1d2ffd8ea1dd7 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 27 Mar 2024 12:23:10 -0400 Subject: [PATCH] [PRISM] Use new error formatting API --- prism_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;