Added loggen info if init settings does not find database

This commit is contained in:
Priit Tark 2015-03-20 12:32:02 +02:00
parent cb3b2e39fc
commit eb3a0dd629

View file

@ -1,8 +1,8 @@
# otherwise rake not working 100% # otherwise rake not working 100%
begin begin
con = ActiveRecord::Base.connection con = ActiveRecord::Base.connection
rescue ActiveRecord::NoDatabaseError rescue ActiveRecord::NoDatabaseError => e
# for running rake tasks, no output logger.info "Init settings didn't find database: #{e}"
end end
if con.present? && con.table_exists?('settings') if con.present? && con.table_exists?('settings')