mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
error.c (frozen_error): change specifier from %t to %T
- `%t` prints type (class) of the argument - `%T` prints real class of the argument, skipping TT_ICLASS, etc.
This commit is contained in:
+1
-1
@@ -521,7 +521,7 @@ mrb_no_method_error(mrb_state *mrb, mrb_sym id, mrb_value args, char const* fmt,
|
||||
static mrb_noreturn void
|
||||
frozen_error(mrb_state *mrb, mrb_value v)
|
||||
{
|
||||
mrb_raisef(mrb, E_FROZEN_ERROR, "can't modify frozen %t", v);
|
||||
mrb_raisef(mrb, E_FROZEN_ERROR, "can't modify frozen %T", v);
|
||||
}
|
||||
|
||||
MRB_API mrb_noreturn void
|
||||
|
||||
Reference in New Issue
Block a user