add "[FATAL]" marker on abort

Indicate that the situation is fatal.
This commit is contained in:
卜部昌平 2019-10-10 16:10:58 +09:00
parent 0b26f56a77
commit d96f04d73a

View File

@ -2640,6 +2640,7 @@ rb_raise(VALUE exc, const char *fmt, ...)
} }
else { else {
/* Not in a ruby thread */ /* Not in a ruby thread */
fprintf(stderr, "%s", "[FATAL] ");
vfprintf(stderr, fmt, args); vfprintf(stderr, fmt, args);
abort(); abort();
} }