lib/figaro/error.rb in figaro-1.0.0.rc1 vs lib/figaro/error.rb in figaro-1.0.0
- old
+ new
@@ -1,9 +1,14 @@
module Figaro
class Error < StandardError; end
class RailsNotInitialized < Error; end
- class MissingKey < Error; end
+
+ class MissingKey < Error
+ def initialize(key)
+ super("Missing required configuration key: #{key.inspect}")
+ end
+ end
class MissingKeys < Error
def initialize(keys)
super("Missing required configuration keys: #{keys.inspect}")
end