Commit 6cf2c9b2b46828e03d57e7c82e19dd4f3d10539a
1 parent
c187523945
Exists in
master
perbaikan penanganan exception xml2js
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
partner-trugee.js
... | ... | @@ -92,8 +92,8 @@ function directResponseHandler(body, request_id) { |
92 | 92 | logger.info('Got direct response'); |
93 | 93 | xml2js(body, function (err, result) { |
94 | 94 | if (err) { |
95 | - logger.warn('Error parsing xml', {body: body}); | |
96 | - callbackReport(request_id, '40', buffer); | |
95 | + logger.warn('Error parsing xml', {err: err, body: body}); | |
96 | + callbackReport(request_id, '40', 'Error parsing xml. ' + err); | |
97 | 97 | return; |
98 | 98 | } |
99 | 99 |