Adapt TypeError Message for String to Integer Conversion.

MRI:
"str" * "3"
=> TypeError: no implicit conversion of String into Integer

mruby:
"str" * "3"
=> TypeError: String can't be coerced into int
This commit is contained in:
Daniel Bovensiepen
2014-03-27 01:41:31 +08:00
parent 6e1e728c51
commit c96339769d
+1 -1
View File
@@ -576,7 +576,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
*p = (mrb_float)mrb_fixnum(*sp);
break;
case MRB_TT_STRING:
mrb_raise(mrb, E_TYPE_ERROR, "String can't be coerced into Float");
mrb_raise(mrb, E_TYPE_ERROR, "no implicit conversion of String into Integer");
break;
default:
{