diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-28 19:26:40 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-28 19:26:40 +0900 |
| commit | b61766473bfd796ae6f8e4bcc7758065e9777732 (patch) | |
| tree | db30cba3e19a36689de80c1abb0f712c1abb148a /mrbgems/mruby-time/src | |
| parent | 4dbbe141173d0869260cf5def516adcb7226d9b5 (diff) | |
| download | mruby-b61766473bfd796ae6f8e4bcc7758065e9777732.tar.gz mruby-b61766473bfd796ae6f8e4bcc7758065e9777732.zip | |
time.c: change `RuntimeError` to `ArgumentError`.
Diffstat (limited to 'mrbgems/mruby-time/src')
| -rw-r--r-- | mrbgems/mruby-time/src/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c index 702cf2e29..83353ee0d 100644 --- a/mrbgems/mruby-time/src/time.c +++ b/mrbgems/mruby-time/src/time.c @@ -463,7 +463,7 @@ time_mktime(mrb_state *mrb, mrb_int ayear, mrb_int amonth, mrb_int aday, || (nowtime.tm_hour == 24 && (nowtime.tm_min > 0 || nowtime.tm_sec > 0)) || nowtime.tm_min < 0 || nowtime.tm_min > 59 || nowtime.tm_sec < 0 || nowtime.tm_sec > 60) - mrb_raise(mrb, E_RUNTIME_ERROR, "argument out of range"); + mrb_raise(mrb, E_ARGUMENT_ERROR, "argument out of range"); if (timezone == MRB_TIMEZONE_UTC) { nowsecs = timegm(&nowtime); |
