Update error message in bootstrap.rake

This commit is contained in:
Ryan Lue 2018-05-23 18:49:11 +08:00
parent 0deedf3fea
commit b057155832

View file

@ -21,7 +21,7 @@ module BootstrapRakeHelper
end end
def add_database_config def add_database_config
raise Errno::ENOENT, 'contrib/database.yml not found' unless File.exist?(DB_CONFIG[:source]) raise Errno::ENOENT, 'config/database.yml not found' unless File.exist?(DB_CONFIG[:source])
if File.exist?(DB_CONFIG[:dest]) if File.exist?(DB_CONFIG[:dest])
return if FileUtils.identical?(DB_CONFIG[:source], DB_CONFIG[:dest]) return if FileUtils.identical?(DB_CONFIG[:source], DB_CONFIG[:dest])