Project

General

Profile

Bug #7539 » patch#7539.txt

duerst (Martin Dürst), 12/11/2012 01:49 PM

 
Index: object.c
===================================================================
--- object.c (リビジョン 38307)
+++ object.c (作業コピー)
@@ -2294,12 +2294,13 @@
r = rb_check_funcall(val, m, 0, 0);
if (r == Qundef) {
if (raise) {
- rb_raise(rb_eTypeError, "can't convert %s into %s",
+ rb_raise(rb_eTypeError, "can't convert %s into %s (using %s)",
NIL_P(val) ? "nil" :
val == Qtrue ? "true" :
val == Qfalse ? "false" :
rb_obj_classname(val),
- tname);
+ tname,
+ method);
}
return Qnil;
}
    (1-1/1)