Handle case when renaming nonexistant workspace

This commit is contained in:
James Barnett
2018-04-18 13:02:31 -05:00
parent 81d00fa5b7
commit 348eb293d0
+6 -1
View File
@@ -170,8 +170,13 @@ class Db
return
end
ws_to_update = framework.db.find_workspace(names.first)
unless ws_to_update
print_error("Workspace '#{names.first}' does not exist")
return
end
opts = {
id: framework.db.find_workspace(names.first).id,
id: ws_to_update.id,
name: names.last
}
begin