Skip to content

Commit

Permalink
chore(transport): add another log in usb read error case
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Feb 4, 2025
1 parent 19ed099 commit 9924cb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/transport/src/api/usb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ export class UsbApi extends AbstractApi {
);

if (!res.data?.byteLength) {
this.logger?.error(`usb: device.transferIn error: empty data buffer`);

return this.error({ error: ERRORS.INTERFACE_DATA_TRANSFER });
}

Expand Down

0 comments on commit 9924cb1

Please sign in to comment.