ruby-changes:58196
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 10 Oct 2019 18:05:03 +0900 (JST)
Subject: [ruby-changes:58196] d96f04d73a (master): add "[FATAL]" marker on abort
https://git.ruby-lang.org/ruby.git/commit/?id=d96f04d73a From d96f04d73a5feb15b9d27bd23af2f7325732bb03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Thu, 10 Oct 2019 16:10:58 +0900 Subject: add "[FATAL]" marker on abort Indicate that the situation is fatal. diff --git a/error.c b/error.c index 3a63a5f..408a163 100644 --- a/error.c +++ b/error.c @@ -2640,6 +2640,7 @@ rb_raise(VALUE exc, const char *fmt, ...) https://github.com/ruby/ruby/blob/trunk/error.c#L2640 } else { /* Not in a ruby thread */ + fprintf(stderr, "%s", "[FATAL] "); vfprintf(stderr, fmt, args); abort(); } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/