You can clone with
HTTPS or Subversion.
When putting invalid YAML into the files in test/fixtures, the errors are reported fine when using Syck as the YAML parser:
ERROR should correctly determine languages (0.00s)
ActiveRecord::Fixture::FormatError: a YAML error occurred parsing some/path/here/test/fixtures/users.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Please have a look at http://www.yaml.org/faq.html
The exact error was:
ArgumentError: syntax error on line 28, col -1: ` first_name: "Foo"
However, when Psych (the default) is in action, the error message looks like this:
ERROR should correctly determine languages (0.03s)
Psych::SyntaxError: couldn't parse YAML at line 29 column 2
The latter is not really informative as it doesn't give me any clue in which file I have misformatted YAML code. It shouldn't be too hard to capture the Psych::SyntaxError exception the same way Syck errors are cought and formatted?
ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
OS: Arch Linux
rails -v: Rails 3.1.0.rc8
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
Duplicate of #2645
* Psych errors with poor yaml formatting are proxied. Fixes #2645, #2731
Fixed in e46c4f1