Remove periods from error messages according to the convention.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-02-28 19:32:52 +09:00
parent b61766473b
commit 8684abd697
5 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -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)",