summaryrefslogtreecommitdiff
path: root/ext/syck
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-22 06:14:17 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-22 06:14:17 +0000
commit9780fc27d941d6975fb29e96584add5383f0316c (patch)
tree61a47dc64a0d9f0b8af06a0ec2ec27084360790a /ext/syck
parent5e1c96af5323f757c9875ea1fb5b754e4dd257cd (diff)
* ext/syck/rubyext.c (rb_syck_err_handler): raise ArgumentError on
malformed YAML. * lib/yaml/rubytypes.rb: String#to_yaml was missing space indicators at the end of a line. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/rubyext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c
index f55edad..60facd5 100644
--- a/ext/syck/rubyext.c
+++ b/ext/syck/rubyext.c
@@ -379,7 +379,7 @@ rb_syck_err_handler(p, msg)
endl++;
endl[0] = '\0';
- rb_raise(rb_eLoadError, "%s on line %d, col %d: `%s'",
+ rb_raise(rb_eArgError, "%s on line %d, col %d: `%s'",
msg,
p->linect,
p->cursor - p->lineptr,