Land #9815, Fix deleting non-existent workspace

GSoC/Meterpreter_Web_Console
Adam Cammack 2018-04-04 14:19:47 -05:00
commit b4683b5f85
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ module Msf::DBManager::Workspace
names.each do |name|
workspace = framework.db.find_workspace(name)
if workspace.nil?
error << "Workspace not found: #{name}"
error_msg << "Workspace not found: #{name}"
elsif workspace.default?
workspace.destroy
workspace = framework.db.add_workspace(name)