Return HTTP 500 on configuration error
[gitphp.git] / include / Config.class.php
blob:a/include/Config.class.php -> blob:b/include/Config.class.php
--- a/include/Config.class.php
+++ b/include/Config.class.php
@@ -78,11 +78,11 @@
 		global $gitphp_version, $gitphp_appstring;
 
 		if (!is_file($configFile)) {
-			throw new Exception('Could not load config file ' . $configFile);
+			throw new GitPHP_MessageException('Could not load config file ' . $configFile, true, 500);
 		}
 
 		if (!include($configFile)) {
-			throw new Exception('Could not read config file ' . $configFile);
+			throw new GitPHP_MessageException('Could not read config file ' . $configFile, true, 500);
 		}
 
 		if (isset($gitphp_conf) && is_array($gitphp_conf))

comments