From c41b53afd876a4e8bd80f809320f702b88bef82d Mon Sep 17 00:00:00 2001 From: Daniel Dimitrov Date: Sat, 31 Oct 2015 11:09:22 +0100 Subject: [PATCH] output message to delete the weblinks installation manually --- RoboFile.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/RoboFile.php b/RoboFile.php index ed81219..ef83ec7 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -178,7 +178,16 @@ class RoboFile extends \Robo\Tasks // Get Joomla Clean Testing sites if (is_dir($this->cmsPath)) { - $this->taskDeleteDir($this->cmsPath)->run(); + try + { + $this->taskDeleteDir($this->cmsPath)->run(); + } + catch (Exception $e) + { + // Sorry, we tried :( + $this->say('Sorry, you will have to delete ' . $this->cmsPath . ' manually. '); + exit(1); + } } $this->_copyDir('tests/cache', $this->cmsPath);