mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Make mirb to print warnings; ref #3827
This commit is contained in:
@@ -528,6 +528,10 @@ done:
|
||||
/* no evaluation of code */
|
||||
}
|
||||
else {
|
||||
if (0 < parser->nwarn) {
|
||||
/* warning */
|
||||
printf("line %d: %s\n", parser->warn_buffer[0].lineno, parser->warn_buffer[0].message);
|
||||
}
|
||||
if (0 < parser->nerr) {
|
||||
/* syntax error */
|
||||
printf("line %d: %s\n", parser->error_buffer[0].lineno, parser->error_buffer[0].message);
|
||||
|
||||
Reference in New Issue
Block a user