We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 187a044 commit ee8318dCopy full SHA for ee8318d
lib/msf/ui/console/command_dispatcher/db.rb
@@ -1713,7 +1713,9 @@ def cmd_db_connect(*args)
1713
cdb = conn.current_database
1714
end
1715
}
1716
- return print_status("#{framework.db.driver} already connected to #{cdb}")
+ status = "#{framework.db.driver} already connected to #{cdb}. "
1717
+ status += "Run db_disconnect first if you wish to connect to a different database."
1718
+ return print_status(status)
1719
1720
if (args[0] == "-y")
1721
if (args[1] and not ::File.exists? ::File.expand_path(args[1]))
0 commit comments