lib/sifttter_redux/configuration.rb in sifttter-redux-0.3.7 vs lib/sifttter_redux/configuration.rb in sifttter-redux-0.3.8

- old
+ new

@@ -14,10 +14,16 @@ # Returns the Hash of data for a particular section. # @param section_name The section in which to look # @return Hash # ---------------------------------------------------- def self.[](section_name) - @data[section_name] + if section_exists?(section_name) + @data[section_name] + else + error = "Section does not exist: #{section_name}" + Methadone::CLILogging.error(error) + fail ArgumentError, error + end end # ---------------------------------------------------- # []= method #