use #fail instead of #raise to signal exceptions, as suggested by RuboCop

This commit is contained in:
Hauke Klement
2015-02-17 09:05:04 +01:00
parent b21a7ee8e8
commit c99b0e6256
6 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ module CodeOcean
content = options[:erb] ? YAML.load(ERB.new(::File.new(path, 'r').read).result) : YAML.load_file(path)
content[Rails.env].with_indifferent_access
else
raise Error.new("Configuration file not found: #{path}")
fail(Error, "Configuration file not found: #{path}")
end
end
end