This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-04-20 13:59:44 -04:00
parent 475d0b5bf1
commit 85f8398234

View File

@@ -1701,6 +1701,9 @@ class workspaceTools
if (Installer::isset_site($workspaceName)) {
if ($overwrite) {
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)");