Skip to content

Commit

Permalink
fix(bacnet-client): correct error message format for BACNET aborts an…
Browse files Browse the repository at this point in the history
…d errors
  • Loading branch information
fh1ch committed Jul 5, 2017
1 parent 8e40dc3 commit 6533e3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bacnet-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ module.exports = function(settings) {
var processError = function(invokeId, buffer, offset, length) {
var result = baServices.DecodeError(buffer, offset, length);
if (!result) return debug('Couldn`t decode Error');
invokeCallback(invokeId, new Error('BacnetAbort - Class:', result.class, ' - Code:', result.code));
invokeCallback(invokeId, new Error('BacnetError - Class:' + result.class + ' - Code:' + result.code));
};

var processAbort = function(invokeId, reason) {
invokeCallback(invokeId, new Error('BacnetAbort - Reason:', reason));
invokeCallback(invokeId, new Error('BacnetAbort - Reason:' + reason));
};

var segmentAckResponse = function(receiver, negative, server, originalInvokeId, sequencenumber, actualWindowSize) {
Expand Down

0 comments on commit 6533e3f

Please sign in to comment.