|
|
@@ -143,7 +143,9 @@ class Config {
|
|
|
public static function getProjectPath() {
|
|
|
$activeProject = self::getProjectName();
|
|
|
if (!$activeProject) return null;
|
|
|
- return APP_PATH_ROOT . DS . "projects" . DS . "{$activeProject}";
|
|
|
+ $path = APP_PATH_ROOT . DS . "projects" . DS . "{$activeProject}";
|
|
|
+ if (!file_exists($path)) throw new Exception("Missing project folder '{$activeProject}'");
|
|
|
+ return $path;
|
|
|
}
|
|
|
|
|
|
}
|