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:
Yukihiro "Matz" Matsumoto
2023-05-31 08:35:54 +09:00
parent e6c89ef1f9
commit 0d8545e01b
+1 -1
View File
@@ -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