Make non-directory project an error
Make non-directory project an error

--- a/include/git/projectlist/ProjectListBase.class.php
+++ b/include/git/projectlist/ProjectListBase.class.php
@@ -113,7 +113,7 @@
 			throw new GitPHP_MessageException(__('A projectroot must be set in the config'), true, 500);
 		}
 		if (!is_dir($this->projectRoot)) {
-			throw new GitPHP_MessageException(sprintf(__('%1$s is not a directory'), $this->projectRoot));
+			throw new GitPHP_MessageException(sprintf(__('%1$s is not a directory'), $this->projectRoot), true, 500);
 		}
 
 		$this->memoryCache = new GitPHP_MemoryCache(GitPHP_Config::GetInstance()->GetValue('objectmemory', 0));

comments