We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
diff --git a/lib/befog/commands/mixins/configurable.rb b/lib/befog/commands/mixins/configurable.rb index c045376..9374527 100644 --- a/lib/befog/commands/mixins/configurable.rb +++ b/lib/befog/commands/mixins/configurable.rb @@ -23,7 +23,19 @@ module Befog end def _configuration - @configuration ||= (YAML.load_file(configuration_path) rescue {}) + if @configuration + @configuration + else + begin + @configuration = YAML.load_file(configuration_path) + rescue Errno::ENOENT + $stdout.puts "No such file: #{configuration_path}" + exit + rescue => e + $stdout.puts "Problem reading configuration file: #{e.inspect}" + exit + end + end end def configuration @@ -43,4 +55,4 @@ module Befog end end end -end \ No newline at end of file +end
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: