diff --git a/xmlout.js b/xmlout.js index a9bd42e..abecc22 100644 --- a/xmlout.js +++ b/xmlout.js @@ -94,7 +94,7 @@ function _topupRequest(task) { client.methodCall(methodName, [ params ], function (error, value) { // Results of the method response - if (error) { + if (error && (error.code == 'ECONNREFUSED' || error.code == 'EHOSTUNREACH')) { logger.warn('XMLRPC Client Error', {requestId: task['requestId'], errorMessage: error}); callbackReport(task['requestId'], '91', 'Gangguan koneksi ke suplier: ' + error);