diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-08 15:56:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-08 15:56:01 +0000 |
commit | 21e858e518c4cec31f4c56caa37682db38bac6a3 (patch) | |
tree | 5f1abbb9fd29a2e0357b05037ee267e114e9a11f /load.c | |
parent | 42976d75f32c4321d602038d74be922efa4dcacd (diff) |
load.c: display backtrace to $stderr
* load.c (load_lock): display backtrace to $stderr at circular
require.
* vm_backtrace.c (rb_backtrace_print_to): new function to print
backtrace to the given output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -706,8 +706,7 @@ load_lock(const char *ftptr) } if (RTEST(ruby_verbose)) { rb_warning("loading in progress, circular require considered harmful - %s", ftptr); - /* TODO: display to $stderr, not stderr in C */ - rb_backtrace(); + rb_backtrace_print_to(rb_stderr); } switch (rb_thread_shield_wait((VALUE)data)) { case Qfalse: |