Skip to content

Commit

Permalink
index_cluster debugging improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Mar 14, 2012
1 parent 5d2457c commit ce83b9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/clustering/gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function retrieve( $filename )
{
if ( ++$tries === $maxTries )
{
$this->interrupt( "Unable to connect to storage server" );
$this->interrupt( $e->getMessage() );
}
}
}
Expand Down Expand Up @@ -276,6 +276,8 @@ private function interrupt( $message, $errorCode = false, $filename = false )

case 500:
default:
if ( !CLUSTER_ENABLE_DEBUG )
$message = "An error has occured";
header( $_SERVER['SERVER_PROTOCOL'] . " 500 Internal Server Error" );
echo <<<EOF
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
Expand Down

0 comments on commit ce83b9d

Please sign in to comment.