Don't rethrow known exceptions
[gitphp.git] / index.php
blob:a/index.php -> blob:b/index.php
--- a/index.php
+++ b/index.php
@@ -55,7 +55,7 @@
 	$messageController = new GitPHP_Controller_Message();
 
 	$config = $messageController->GetConfig();
-	if ($config && $config->GetValue('debug')) {
+	if ($config && $config->GetValue('debug') && !($e instanceof GitPHP_MessageException)) {
 		throw $e;
 	}
 

comments