Permalink
Browse files

Add at least a generic useful message instead of just a blank string …

…when error reporting is turned off
  • Loading branch information...
1 parent f31569d commit dc5de4752fbe69c8cba2ebb13b6e13376d656401 @nburka nburka committed Jan 29, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 XML/RPC2/Backend/Php/Server.php
  2. +1 −1 XML/RPC2/Backend/Xmlrpcext/Server.php
@@ -139,7 +139,7 @@ public function getResponse()
if (ini_get('display_errors') == 1) {
return (XML_RPC2_Backend_Php_Response::encodeFault(1, 'Unhandled ' . get_class($e) . ' exception:' . $e->getMessage() . $e->getTraceAsString(), $this->encoding));
} else {
- return XML_RPC2_Backend_Php_Response::encodeFault(1, '', $this->encoding);
+ return XML_RPC2_Backend_Php_Response::encodeFault(1, 'Unhandled PHP Exception', $this->encoding);
}
}
}
@@ -169,7 +169,7 @@ public function getResponse()
if (ini_get('display_errors') == 1) {
return (XML_RPC2_Backend_Php_Response::encodeFault(1, 'Unhandled ' . get_class($e) . ' exception:' . $e->getMessage()));
} else {
- return XML_RPC2_Backend_Php_Response::encodeFault(1, '');
+ return XML_RPC2_Backend_Php_Response::encodeFault(1, 'Unhandled PHP Exception');
}
}
}

0 comments on commit dc5de47

Please sign in to comment.