Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
rc8: Obscure error message with invalid YAML in fixtures #2731
When putting invalid YAML into the files in test/fixtures, the errors are reported fine when using Syck as the YAML parser:
However, when Psych (the default) is in action, the error message looks like this:
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?