Return HTTP 500 on configuration error
[gitphp.git] / index.php
blob:a/index.php -> blob:b/index.php
--- a/index.php
+++ b/index.php
@@ -110,7 +110,7 @@
 	}
 
 	if (!GitPHP_Config::GetInstance()->GetValue('projectroot', null)) {
-		throw new GitPHP_MessageException(__('A projectroot must be set in the config'), true);
+		throw new GitPHP_MessageException(__('A projectroot must be set in the config'), true, 500);
 	}
 
 	/*

comments