HOR-812

HOR-812
This commit is contained in:
Paula V. Quispe
2016-04-20 15:18:23 -04:00
parent 84a88c9bc2
commit 0506053bdb
2 changed files with 15 additions and 3 deletions

View File

@@ -1574,6 +1574,10 @@ class workspaceTools
if ($newDatabases != $oldDatabases) {
throw new Exception("We can't overwrite this workspace because it has a different amount of databases. Not only the 'source' but also the 'target' must have the same amount of databases.");
}
if(!$workspace->workspaceExists()){
throw new Exception('We can not overwrite this workspace because the workspace '.$workspaceName.' does not exist please check the lower case and upper case.');
}
CLI::logging(CLI::warning("> Workspace $workspaceName already exist, overwriting!") . "\n");
} else {
throw new Exception("Destination workspace already exist (use -o to overwrite)");