Skip to content

Commit

Permalink
[PRISM] Use new error formatting API
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Mar 27, 2024
1 parent 9b816e6 commit a69f004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prism_compile.c
Expand Up @@ -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;
Expand Down

0 comments on commit a69f004

Please sign in to comment.