1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
why 2003-05-22 06:14:17 +00:00
parent 5e1c96af53
commit 9780fc27d9
3 changed files with 11 additions and 2 deletions

View file

@ -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,