diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-28 19:32:52 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-28 19:32:52 +0900 |
| commit | 8684abd697bddb63aed18ef3a2083b3484cadd9b (patch) | |
| tree | ca1e958f2db3e6b2446a5c0bcbcb166fa2ebd8a0 /mrbgems/mruby-time | |
| parent | b61766473bfd796ae6f8e4bcc7758065e9777732 (diff) | |
| download | mruby-8684abd697bddb63aed18ef3a2083b3484cadd9b.tar.gz mruby-8684abd697bddb63aed18ef3a2083b3484cadd9b.zip | |
Remove periods from error messages according to the convention.
Diffstat (limited to 'mrbgems/mruby-time')
| -rw-r--r-- | mrbgems/mruby-time/src/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c index 83353ee0d..33a20b5cf 100644 --- a/mrbgems/mruby-time/src/time.c +++ b/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; |
