Adjust messaging when renaming workspaces
parent
31be847213
commit
7e971721f0
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue