summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-07-24 04:42:07 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-07-24 04:42:07 +0000
commit3b0fec9a5f966fd7ae26bc7b84877fa7209d8605 (patch)
tree48fbc4b02d73ca0f173ed87e288ee406e0913b97 /error.c
parent0d30af8fd2bcfea8cf5dbf87b623c57960ce81bc (diff)
1.1c1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/error.c b/error.c
index c316e88d9c..a0346a4c6b 100644
--- a/error.c
+++ b/error.c
@@ -393,12 +393,12 @@ exception(argc, argv)
}
for (i=0; i<argc; i++) { /* argument check */
id = rb_to_id(argv[i]);
- if (!rb_is_const_id(id)) {
- ArgError("identifier `%s' needs to be constant", rb_id2name(id));
- }
if (!rb_id2name(id)) {
ArgError("argument needs to be symbol or string");
}
+ if (!rb_is_const_id(id)) {
+ ArgError("identifier `%s' needs to be constant", rb_id2name(id));
+ }
}
for (i=0; i<argc; i++) {
v = rb_define_class_under(the_class,