summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-10-10 16:10:58 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-10-10 17:10:21 +0900
commitd96f04d73a5feb15b9d27bd23af2f7325732bb03 (patch)
tree6a2b5c371b8bf75eb7f4a69012dbea9d9448d51f
parent0b26f56a77a6dabe2b1c09c4569ed846798afcdc (diff)
add "[FATAL]" marker on abort
Indicate that the situation is fatal.
-rw-r--r--error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/error.c b/error.c
index 3a63a5f2a9..408a163f1f 100644
--- a/error.c
+++ b/error.c
@@ -2640,6 +2640,7 @@ rb_raise(VALUE exc, const char *fmt, ...)
}
else {
/* Not in a ruby thread */
+ fprintf(stderr, "%s", "[FATAL] ");
vfprintf(stderr, fmt, args);
abort();
}