FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

use the same error message · bencode/mruby@4f0a163 · GitHub

/ mruby Public
forked from mruby/mruby

Commit 4f0a163

Browse files
committed
use the same error message
1 parent 5488da6 commit 4f0a163

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎mrbgems/mruby-struct/src/struct.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ mrb_struct_getmember(mrb_state *mrb, mrb_value obj, mrb_sym id)
124124
return ptr[i];
125125
}
126126
}
127-
mrb_raisef(mrb, E_INDEX_ERROR, "%S is not struct member", mrb_sym2str(mrb, id));
127+
mrb_raisef(mrb, E_INDEX_ERROR, "`%S' is not a struct member", mrb_sym2str(mrb, id));
128128
return mrb_nil_value(); /* not reached */
129129
}
130130

@@ -203,9 +203,8 @@ mrb_struct_set(mrb_state *mrb, mrb_value obj, mrb_value val)
203203
return ptr[i] = val;
204204
}
205205
}
206-
mrb_raisef(mrb, E_INDEX_ERROR, "`%S' is not a struct member",
207-
mrb_sym2str(mrb, mid));
208-
return mrb_nil_value(); /* not reached */
206+
mrb_raisef(mrb, E_INDEX_ERROR, "`%S' is not a struct member", mrb_sym2str(mrb, mid));
207+
return mrb_nil_value(); /* not reached */
209208
}
210209

211210
static mrb_value

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL