Skip to content

Commit b23a3db

Browse files
committed
Fix messages
1 parent cc25244 commit b23a3db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frame.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export class Frame {
4848
} else if (this.isUnknownFunctionCode()) {
4949
return `No strategy to format data field. Raw data field is: 0x${this.hexData}`;
5050
} else if (this.isNoValidDataFormat()) {
51-
return `This frame format does not fit to any known strategies: masterRequestError=${this.masterRequest?.error}; slaveResponseError=${this.slaveResponse?.error}; raw data: 0x${this.hexData}`;
51+
return `This frame format does not fit to any known strategies: masterRequest=${this.masterRequest?.error}; slaveResponse=${this.slaveResponse?.error}; raw data: 0x${this.hexData}`;
5252
} else {
53-
return `Valid frame: masterRequest=${JSON.stringify(this.masterRequest)}; slaveResponse=${JSON.stringify(this.slaveResponse)}`;
53+
return `Valid frame: masterRequest=${JSON.stringify(this.masterRequest?.object)}; slaveResponse=${JSON.stringify(this.slaveResponse?.object)}`;
5454
}
5555
}
5656

0 commit comments

Comments
 (0)