Don't rethrow known exceptions
Don't rethrow known exceptions

file:a/index.php -> file: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