summary refs log tree commit
path: root/ext/json/ext/parser/parser.rl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/ext/parser/parser.rl')
-rw-r--r--ext/json/ext/parser/parser.rl2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/ext/parser/parser.rl b/ext/json/ext/parser/parser.rl
index eb0a6ba..44ddfa6 100644
--- a/ext/json/ext/parser/parser.rl
+++ b/ext/json/ext/parser/parser.rl
@@ -643,7 +643,7 @@ static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
     GET_PARSER_INIT;
 
     if (json->Vsource) {
-        rb_raise(rb_eArgError, "already initialized instance");
+        rb_raise(rb_eTypeError, "already initialized instance");
     }
     rb_scan_args(argc, argv, "11", &source, &opts);
     source = convert_encoding(StringValue(source));