Remove periods from error messages according to the convention.
MODIFY
mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
@@ -502,7 +502,7 @@ dbgcmd_quit(mrb_state *mrb, mrdb_state *mrdb)
if (mrdb->dbg->xm == DBG_QUIT) {
struct RClass *exc;
exc = mrb_define_class(mrb, "DebuggerExit", mrb->eException_class);
- mrb_raise(mrb, exc, "Exit mrdb.");
+ mrb_raise(mrb, exc, "Exit mrdb");
}
return DBGST_PROMPT;
}

MODIFY
mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c
mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c
@@ -18,9 +18,9 @@ dbgcmd_run(mrb_state *mrb, mrdb_state *mrdb)
dbg->xm = DBG_QUIT;
if (dbg->xphase == DBG_PHASE_RUNNING){
struct RClass *exc;
- puts("Start it from the beginning.");
+ puts("Start it from the beginning");
exc = mrb_define_class(mrb, "DebuggerRestart", mrb->eException_class);
- mrb_raise(mrb, exc, "Restart mrdb.");
+ mrb_raise(mrb, exc, "Restart mrdb");
}
}

MODIFY
mrbgems/mruby-io/src/io.c
mrbgems/mruby-io/src/io.c
@@ -88,10 +88,10 @@ io_get_open_fptr(mrb_state *mrb, mrb_value self)
fptr = (struct mrb_io *)mrb_data_get_ptr(mrb, self, &mrb_io_type);
if (fptr == NULL) {
- mrb_raise(mrb, E_IO_ERROR, "uninitialized stream.");
+ mrb_raise(mrb, E_IO_ERROR, "uninitialized stream");
}
if (fptr->fd < 0) {
- mrb_raise(mrb, E_IO_ERROR, "closed stream.");
+ mrb_raise(mrb, E_IO_ERROR, "closed stream");
}
return fptr;
}
@@ -581,7 +581,7 @@ mrb_io_s_popen(mrb_state *mrb, mrb_value klass)
close(pw[1]);
}
errno = saved_errno;
- mrb_sys_fail(mrb, "pipe_open failed.");
+ mrb_sys_fail(mrb, "pipe_open failed");
break;
}
return result;
@@ -795,7 +795,7 @@ fptr_finalize(mrb_state *mrb, struct mrb_io *fptr, int quiet)
if (!quiet && saved_errno != 0) {
errno = saved_errno;
- mrb_sys_fail(mrb, "fptr_finalize failed.");
+ mrb_sys_fail(mrb, "fptr_finalize failed");
}
}

MODIFY
mrbgems/mruby-time/src/time.c
mrbgems/mruby-time/src/time.c
@@ -472,7 +472,7 @@ time_mktime(mrb_state *mrb, mrb_int ayear, mrb_int amonth, mrb_int aday,
nowsecs = mktime(&nowtime);
}
if (nowsecs == (time_t)-1) {
- mrb_raise(mrb, E_ARGUMENT_ERROR, "Not a valid time.");
+ mrb_raise(mrb, E_ARGUMENT_ERROR, "Not a valid time");
}
return time_alloc_time(mrb, nowsecs, ausec, timezone);
@@ -928,7 +928,7 @@ time_to_s_local(mrb_state *mrb, struct mrb_time *tm, char *buf, size_t buf_len)
int offset;
if (utc_sec == (time_t)-1) {
- mrb_raise(mrb, E_ARGUMENT_ERROR, "Not a valid time.");
+ mrb_raise(mrb, E_ARGUMENT_ERROR, "Not a valid time");
}
offset = abs((int)(utc_sec - tm->sec) / 60);
datetime.tm_year = 100;

MODIFY
src/proc.c
src/proc.c
@@ -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)",

Remove periods from error messages according to the convention.