ruby-changes:54548
From: nobu <ko1@a...>
Date: Wed, 9 Jan 2019 22:58:56 +0900 (JST)
Subject: [ruby-changes:54548] nobu:r66763 (trunk): time.c: update error message for invalid utc_offset
nobu 2019-01-09 22:58:51 +0900 (Wed, 09 Jan 2019) New Revision: 66763 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66763 Log: time.c: update error message for invalid utc_offset Modified files: trunk/time.c Index: time.c =================================================================== --- time.c (revision 66762) +++ time.c (revision 66763) @@ -2047,7 +2047,10 @@ NORETURN(static void invalid_utc_offset( https://github.com/ruby/ruby/blob/trunk/time.c#L2047 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/