aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-05 15:55:09 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-05 15:55:09 +0000
commitce44928d2b4d32b41f9a19097fb7bd7b2c13c4bd (patch)
treee2e9c28e8caf5535b343988de6fa23ed0f941695 /eval.c
parentcded3d5c93f0964fc504a4344146e3624a9875a1 (diff)
downloadruby-ce44928d2b4d32b41f9a19097fb7bd7b2c13c4bd.tar.gz
* error.c (Init_Exception): remove Exception#to_str. [Ruby2]
* eval.c (error_print): should no call "to_str" anymore use "message" method instead. * io.c (rb_f_open): Kernel#open() calls "to_open" if the first argument responds to it. [Ruby2] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index a66f710a8a..a46157fc0b 100644
--- a/eval.c
+++ b/eval.c
@@ -1125,7 +1125,7 @@ error_print()
eclass = CLASS_OF(ruby_errinfo);
if (EXEC_TAG() == 0) {
- e = rb_obj_as_string(ruby_errinfo);
+ e = rb_funcall(ruby_errinfo, rb_intern("message"), 0, 0);
einfo = RSTRING(e)->ptr;
elen = RSTRING(e)->len;
}