Skip to content

Commit

Permalink
Merge a57b47c into 2b04748
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut authored Apr 21, 2022
2 parents 2b04748 + a57b47c commit b64ce03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/smpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ Session.prototype.send = function(pdu, responseCallback, sendCallback, failureCa
}
if (failureCallback) {
pdu.command_status = defs.errors.ESME_RSUBMITFAIL;
failureCallback(pdu);
failureCallback(pdu, err);
}
} else {
this.debug("socket.data.out", null, {bytes: buffer.length});
this.debug("socket.data.out", null, {bytes: buffer.length, error: err});
this.emitMetric("socket.data.out", buffer.length, {bytes: buffer.length});
this.emit('send', pdu);
if (sendCallback) {
Expand Down

0 comments on commit b64ce03

Please sign in to comment.