mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
+1
-1
@@ -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:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user