lib/cliutils/prefs.rb in cliutils-1.0.6 vs lib/cliutils/prefs.rb in cliutils-1.0.7
- old
+ new
@@ -30,10 +30,10 @@
@config_path = data
prompts = YAML::load_file(data)
@prompts.deep_merge!(prompts).deep_symbolize_keys!
else
- fail "Invalid configuration file: #{ yaml_path }"
+ fail "Invalid configuration file: #{ data }"
end
when Hash
@config_path = nil
data = {:prompts => data} unless data.keys[0] == :prompts