Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify default error translation key
I ran into this while working on my custom token generation. - I accidentally triggered a `NoMethodError` which was rescued and wrapped here: https://github.com/doorkeeper-gem/doorkeeper/blob/master/lib/doorkeeper/models/access_token_mixin.rb#L137 - This was then fed into https://github.com/doorkeeper-gem/doorkeeper/blob/master/app/controllers/doorkeeper/tokens_controller.rb#L9 and I got an error message from I18n about a missing translation key. This changeset adds a default to prevent that from happening. [fixes doorkeeper-gem#747]
- Loading branch information