summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
Diffstat (limited to 'range.c')
-rw-r--r--range.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/range.c b/range.c
index 0dc0fb8..3fc1935 100644
--- a/range.c
+++ b/range.c
@@ -83,7 +83,7 @@ range_modify(VALUE range)
{
/* Ranges are immutable, so that they should be initialized only once. */
if (RANGE_EXCL(range) != Qnil) {
- rb_name_error(idInitialize, "`initialize' called twice");
+ rb_name_err_raise("`initialize' called twice", range, ID2SYM(idInitialize));
}
}