mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #844 from skandhas/pr-fix-error-output-for-remove_const
fix incorrect output for Module#remove_const
This commit is contained in:
+1
-1
@@ -1758,7 +1758,7 @@ mrb_mod_remove_const(mrb_state *mrb, mrb_value mod)
|
||||
check_const_name(mrb, sym);
|
||||
val = mrb_iv_remove(mrb, mod, sym);
|
||||
if (mrb_undef_p(val)) {
|
||||
mrb_name_error(mrb, sym, "instance variable %s not defined", mrb_sym2name(mrb, sym));
|
||||
mrb_name_error(mrb, sym, "constant %s not defined", mrb_sym2name(mrb, sym));
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user