Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…when error reporting is turned off
  • Loading branch information...
commit dc5de4752fbe69c8cba2ebb13b6e13376d656401 1 parent f31569d
Nick Burka nburka authored
2  XML/RPC2/Backend/Php/Server.php
View
@@ -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);
}
}
}
2  XML/RPC2/Backend/Xmlrpcext/Server.php
View
@@ -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');
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.