Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Unhelpful exception message on YAML syntax error #180

semaperepelitsa opened this Issue Dec 5, 2012 · 1 comment


None yet
2 participants

When I've got a syntax error in my YAML locale file, I get a rather vague error message:

can not load translations from file.yml, expected it to return a hash, but does not

The original exception is following:

Psych::SyntaxError: (<unknown>): mapping values are not allowed in this context at line 134 column 20

It should either not rescue that exception or at least preserve the original message so that one can see what is actually wrong.


knapo commented Dec 21, 2012

Absolutely agree. Fixed.

@knapo knapo closed this Dec 21, 2012

@atzorvas atzorvas pushed a commit to e-travel/i18n that referenced this issue Jan 12, 2016

@kuroda kuroda Merge pull request #180 from tigrish/rails3
This commit further cleans up the locale files and removes the activerecord scope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment