Commit 0d6685f0a8683da6c6ea55c56de9c6c70c1705d4
1 parent
b8fb49a7a5
Exists in
master
detail error
Showing 1 changed file with 7 additions and 1 deletions Side-by-side Diff
partner-irs.js
... | ... | @@ -136,11 +136,17 @@ function topupRequestXMLRPC(task, retry) { |
136 | 136 | logger.warn('XMLRPC Client Error', {requestId: task['requestId'], errorMessage: error}); |
137 | 137 | var responseTs = strftime('%Y-%m-%d %H:%M:%S', new Date()); |
138 | 138 | var dummyValue = { |
139 | - MESSAGE: 'GENERATED: XMLRPC Client Error: ' + error, | |
139 | + MESSAGE: 'GENERATED: XMLRPC Client Error. ' + error, | |
140 | 140 | RESPONSECODE: '68', |
141 | 141 | REQUESTID: task.requestId, |
142 | 142 | } |
143 | 143 | |
144 | + try { | |
145 | + dummyValue.HTTP_STATUS = error.res && error.res.statusCode; | |
146 | + dummyValue.RESPONSEBODY = error.body; | |
147 | + } | |
148 | + catch(errRB) {} | |
149 | + | |
144 | 150 | if (retry) { |
145 | 151 | |
146 | 152 | dummyValue.MESSAGE = dummyValue.MESSAGE + '. Retrying (' + retry + ')'; |