Adjust messaging when renaming workspaces

GSoC/Meterpreter_Web_Console
James Barnett 2018-04-19 11:52:30 -05:00
parent 31be847213
commit 7e971721f0
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
1 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ class Db
updated_ws = framework.db.update_workspace(opts) updated_ws = framework.db.update_workspace(opts)
if updated_ws if updated_ws
framework.db.workspace = updated_ws if names.first == framework.db.workspace.name framework.db.workspace = updated_ws if names.first == framework.db.workspace.name
print_status("Renamed workspace: #{updated_ws.name}") print_status("Renamed workspace '#{names.first}' to '#{updated_ws.name}'")
else else
print_error "There was a problem updating the workspace. Setting to the default workspace." print_error "There was a problem updating the workspace. Setting to the default workspace."
framework.db.workspace = framework.db.default_workspace framework.db.workspace = framework.db.default_workspace
@ -197,7 +197,7 @@ class Db
print_status("Recreated default workspace") print_status("Recreated default workspace")
end end
rescue Exception => e rescue Exception => e
print_error "In db.rb, error in the update #{e.message}" print_error "Failed to rename workspace: #{e.message}"
e.backtrace.each { |line| print_error "#{line}"} e.backtrace.each { |line| print_error "#{line}"}
end end