Commit 56d20726bbf747a53c47ab44d307b8e503c6471d

Authored by Adhidarma Hadiwinoto
1 parent 1154ff807a
Exists in master

gagal jika ECONNREFUSED atau EHOSTUNREACH

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -94,7 +94,7 @@ function _topupRequest(task) {
94 94 client.methodCall(methodName, [ params ], function (error, value) {
95 95  
96 96 // Results of the method response
97   - if (error) {
  97 + if (error && (error.code == 'ECONNREFUSED' || error.code == 'EHOSTUNREACH')) {
98 98  
99 99 logger.warn('XMLRPC Client Error', {requestId: task['requestId'], errorMessage: error});
100 100 callbackReport(task['requestId'], '91', 'Gangguan koneksi ke suplier: ' + error);