lib/ardb/runner/create_command.rb in ardb-0.1.0 vs lib/ardb/runner/create_command.rb in ardb-0.2.0
- old
+ new
@@ -12,9 +12,11 @@
@adapter.create_db
$stdout.puts "created #{Ardb.config.db.adapter} db `#{Ardb.config.db.database}`"
rescue Ardb::Runner::CmdError => e
raise e
rescue Exception => e
+ $stderr.puts e
+ $stderr.puts "error dropping #{Ardb.config.db.database.inspect} database"
raise Ardb::Runner::CmdFail
end
end
end