Closed (fixed)
Project:
Xero API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2013 at 21:33 UTC
Updated:
26 Feb 2013 at 00:30 UTC
Jump to comment: Most recent file
When xero_query() fails, this module currently just prints the exception name, without providing any background information about what might have caused the exception or how to resolve it.
The attached patch includes in the error message the items submitted to Xero and Xero's response.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1880522-improve-xero-error-reporting.patch | 1.62 KB | mradcliffe |
| xero-exception-parameters-00.patch | 1.05 KB | smokris |
Comments
Comment #1
mradcliffeI don't think printing the entire error in drupal_set_message() is appropriate, but it's definitely useful in watchdog.
Maybe something like this with optional parameter to xero_error() (which should be BC).
Comment #2
mradcliffePushed to 6.x-1.x and 7.x-1.x branches.