time.c: update error message for invalid utc_offset
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
78d6e33702
commit
347f3f30d6
5
time.c
5
time.c
@ -2047,7 +2047,10 @@ NORETURN(static void invalid_utc_offset(void));
|
||||
static void
|
||||
invalid_utc_offset(void)
|
||||
{
|
||||
rb_raise(rb_eArgError, "\"+HH:MM\" or \"-HH:MM\" expected for utc_offset");
|
||||
static const char message[] = "\"+HH:MM\", \"-HH:MM\", \"UTC\" "
|
||||
"or \"A\"..\"I\",\"K\"..\"Z\" expected for utc_offset";
|
||||
VALUE str = rb_usascii_str_new_static(message, sizeof(message)-1);
|
||||
rb_exc_raise(rb_exc_new_str(rb_eArgError, str));
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user