Skip to content

Commit 9a974af

Browse files
committed
Merge pull request #3 from wvu-r7/pr/4902
Change print_status to print_error
2 parents 4d12690 + 3c7b061 commit 9a974af

File tree

1 file changed

+4
-4
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+4
-4
lines changed

lib/msf/ui/console/command_dispatcher/db.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ def cmd_db_status(*args)
16871687
return if not db_check_driver
16881688

16891689
if framework.db.connection_established?
1690-
cdb = ""
1690+
cdb = ''
16911691
::ActiveRecord::Base.connection_pool.with_connection do |conn|
16921692
if conn.respond_to?(:current_database)
16931693
cdb = conn.current_database
@@ -1707,14 +1707,14 @@ def cmd_db_connect_help
17071707
def cmd_db_connect(*args)
17081708
return if not db_check_driver
17091709
if args[0] != '-h' && framework.db.connection_established?
1710-
cdb = ""
1710+
cdb = ''
17111711
::ActiveRecord::Base.connection_pool.with_connection do |conn|
17121712
if conn.respond_to?(:current_database)
17131713
cdb = conn.current_database
17141714
end
17151715
end
1716-
print_status("#{framework.db.driver} already connected to #{cdb}. " +
1717-
"Run db_disconnect first if you wish to connect to a different database.")
1716+
print_error("#{framework.db.driver} already connected to #{cdb}")
1717+
print_error('Run db_disconnect first if you wish to connect to a different database')
17181718
return
17191719
end
17201720
if (args[0] == "-y")

0 commit comments

Comments
 (0)