From a7c74eac78c0b4bdfd165e832234d803ed1faba3 Mon Sep 17 00:00:00 2001 From: Axel Rutz Date: Tue, 8 Oct 2019 00:18:28 +0200 Subject: [PATCH] Allow alias without root, closes drush-ops/drush#4059 --- src/SiteAliasTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SiteAliasTrait.php b/src/SiteAliasTrait.php index 7b79fb8..4b5c14d 100644 --- a/src/SiteAliasTrait.php +++ b/src/SiteAliasTrait.php @@ -27,7 +27,7 @@ public function hasRoot() public function root() { if (!$this->hasRoot()) { - throw new \Exception('Site alias ' . $this->name . ' does not specify a root.'); + return NULL; } $root = $this->get('root'); if ($this->isLocal()) {