mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
add error code to error response data
This commit is contained in:
parent
80175a7128
commit
b652cff50e
1 changed files with 2 additions and 1 deletions
|
|
@ -498,8 +498,9 @@ class Connection extends EventEmitter {
|
|||
}
|
||||
|
||||
onErrResponse(bufferReader) {
|
||||
const errCode = bufferReader.getRemainingBytesCount() > 0 ? bufferReader.readByte() : null;
|
||||
this.emit(Constants.ResponseCodes.Err, {
|
||||
|
||||
errCode: errCode,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue