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:
Yukihiro "Matz" Matsumoto
2013-02-17 16:08:02 -08:00
+1 -1
View File
@@ -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;
}