Skip to content

Commit

Permalink
Make MissingTranslation a proper exception class
Browse files Browse the repository at this point in the history
Otherwise, attempting to re-raise this 'exception' will fail

See #134
  • Loading branch information
radar committed Nov 20, 2016
1 parent 1d014e2 commit 1bcc77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/exceptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def initialize(filename, exception_message)
end
end

class MissingTranslation
class MissingTranslation < ArgumentError
module Base
attr_reader :locale, :key, :options

Expand Down

0 comments on commit 1bcc77b

Please sign in to comment.