summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-04-07 08:34:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-04-07 08:34:10 +0000
commitba06b1a81f81e089849c7c877eba7b1d3618b126 (patch)
tree57e77c2ade50f201b4aafdc071cf86fb95eb7016 /error.c
parentf8fc9136223c83c2791566d3efa52843f89aa127 (diff)
dynamic (nested) local variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/error.c b/error.c
index 74c2cbb8be..a4e433a869 100644
--- a/error.c
+++ b/error.c
@@ -274,8 +274,7 @@ exc_s_new(argc, argv, etype)
exc = exc_new(etype, 0, 0);
}
else {
- Check_Type(arg, T_STRING);
- exc = exc_new3(etype, arg);
+ exc = exc_new3(etype, obj_as_string(arg));
}
obj_call_init(exc);
return exc;