diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-05 02:29:18 +0000 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2011-07-07 13:04:20 +0900 |
commit | d4655840f69e0cce077749ad4a2c256e03bb8f66 (patch) | |
tree | db8681d2a572774bd69d3853123a39d918e54adc /ext/json/ext/parser/parser.rl | |
parent | d2cbd056040a83408629306bc211592cd5cbc8a3 (diff) | |
download | json-d4655840f69e0cce077749ad4a2c256e03bb8f66.tar.gz |
* ext/json/ext/parser/parser.h (GET_PARSER): raise TypeError.
* ext/json/ext/parser/parser.rl (cParser_initialize): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json/ext/parser/parser.rl')
-rw-r--r-- | ext/json/ext/parser/parser.rl | 2 |
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)); |