Bug #9684

Use same error messages in struct.c

Added by Marcus Stollsteimer about 1 year ago. Updated 10 months ago.

[ruby-core:61721]
Status:Closed
Priority:Normal
Assignee:-
ruby -v:ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux] Backport:2.0.0: DONE, 2.1: DONE

Description

In struct.c, use the same error message "`foo' is not a struct member" in

  • rb_struct_getmember (line 97) and
  • rb_struct_set (lines 157)

emsg_struct.patch Magnifier (366 Bytes) Marcus Stollsteimer, 03/27/2014 01:49 PM

Associated revisions

Revision 45462
Added by Nobuyoshi Nakada about 1 year ago

struct.c: not_a_member message

  • struct.c (not_a_member): extract name error and use same error messages. based on the patch by Marcus Stollsteimer at . [Bug #9684]

Revision 45462
Added by Nobuyoshi Nakada about 1 year ago

struct.c: not_a_member message

  • struct.c (not_a_member): extract name error and use same error messages. based on the patch by Marcus Stollsteimer at . [Bug #9684]

Revision 46673
Added by Tomoyuki Chikanaga 10 months ago

merge revision(s) r45462,r45463,r45466: [Backport #9684]

* struct.c (not_a_member): extract name error and use same error
  messages.  based on the patch by Marcus Stollsteimer <sto.mar AT
  web.de> at .  [Bug #9684]

Revision 46741
Added by Usaku NAKAMURA 10 months ago

merge revision(s) 45462,45463,45466: [Backport #9684]

* struct.c (not_a_member): extract name error and use same error
  messages.  based on the patch by Marcus Stollsteimer <sto.mar AT
  web.de> at .  [Bug #9684]

History

#1 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Open to Feedback

Do you have code to raise those exceptions?

#2 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

Applied in changeset r45462.


struct.c: not_a_member message

  • struct.c (not_a_member): extract name error and use same error messages. based on the patch by Marcus Stollsteimer at . [Bug #9684]

#3 Updated by Usaku NAKAMURA 10 months ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED

#4 Updated by Tomoyuki Chikanaga 10 months ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE

r45462, r45463 and r45466 were backported into ruby_2_1 branch at r46673.

#5 Updated by Usaku NAKAMURA 10 months ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: DONE to 2.0.0: DONE, 2.1: DONE

backported into ruby_2_0_0 at r46741.

Also available in: Atom PDF