mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove periods from error messages according to the convention.
This commit is contained in:
+2
-2
@@ -171,11 +171,11 @@ mrb_proc_cfunc_env_get(mrb_state *mrb, mrb_int idx)
|
||||
struct REnv *e;
|
||||
|
||||
if (!p || !MRB_PROC_CFUNC_P(p)) {
|
||||
mrb_raise(mrb, E_TYPE_ERROR, "Can't get cfunc env from non-cfunc proc.");
|
||||
mrb_raise(mrb, E_TYPE_ERROR, "Can't get cfunc env from non-cfunc proc");
|
||||
}
|
||||
e = MRB_PROC_ENV(p);
|
||||
if (!e) {
|
||||
mrb_raise(mrb, E_TYPE_ERROR, "Can't get cfunc env from cfunc Proc without REnv.");
|
||||
mrb_raise(mrb, E_TYPE_ERROR, "Can't get cfunc env from cfunc Proc without REnv");
|
||||
}
|
||||
if (idx < 0 || MRB_ENV_LEN(e) <= idx) {
|
||||
mrb_raisef(mrb, E_INDEX_ERROR, "Env index out of range: %i (expected: 0 <= index < %i)",
|
||||
|
||||
Reference in New Issue
Block a user