Skip to content

Commit

Permalink
Fix the error message for missing yml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Mar 19, 2018
1 parent 8ad4357 commit 8007f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails/generators/alchemy/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def template_engine
def load_alchemy_yaml(name)
YAML.safe_load(ERB.new(File.read("#{Rails.root}/config/alchemy/#{name}")).result, YAML_WHITELIST_CLASSES, [], true)
rescue Errno::ENOENT
puts "\nERROR: Could not read config/alchemy/#{name} file. Please run: rails generate alchemy:scaffold"
puts "\nERROR: Could not read config/alchemy/#{name} file. Please run: `rails generate alchemy:install`"
end
end
end
Expand Down

0 comments on commit 8007f22

Please sign in to comment.