If the application trow an error (eg. use of services_error()) and provides an error code, the service still respond with JSONRPC_ERROR_INTERNAL_ERROR (-32603). This has to be a fallback when application's code lacks.

Comments

claudiu.cristea’s picture

Status: Active » Needs review
StatusFileSize
new1.32 KB

Here's a patch that uses JSONRPC_ERROR_INTERNAL_ERROR (-32603) only if the application has not sent an error code.

claudiu.cristea’s picture

StatusFileSize
new2.14 KB

New patch with some correction. "Exception" object doesn't have a getData method.