Daxbot / node-canopen

CANopen implementation for NodeJS
MIT License
32 stars 11 forks source link

#3 Include abort code in SDO rejections #4

Closed dawn-minion closed 4 years ago

dawn-minion commented 4 years ago

PR adds a new method getSDOError that returns an Error object with the string as before, but also includes the abort code as the code property of the Error object, similar to how NodeJS' libraries and others do. I've updated all reject calls to use this new method to reject with.

Fixes #3