svenfuchs/i18n — pull request #133 by ndbroadbent (2012-01-10 08:34:09+00:00)
Title: Patch for issue #88: Add filename info to exception message if YAML.load_file fails

This augments the error message from any YAML parser, and makes it much easier to debug i18n issues. Otherwise, there's no way of knowing which translation file contains the syntax error.

### Before:

```
Psych::SyntaxError: couldn't parse YAML at line 16 column 14
from /web/tt/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych.rb:148:in `parse'
...
```

### After:

```
Psych::SyntaxError: Error loading '/home/username/src/rails/application/config/locales/en-US_application.yml': couldn't parse YAML at line 16 column 14
from /web/tt/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych.rb:148:in `parse'
...
```