Skip to content

Commit 3388700

Browse files
authored
Handle ledger DisconnectDevice error (#5519)
1 parent 4781602 commit 3388700

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ironfish-cli/src/ledger/ledger.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
44
import { Assert } from '@ironfish/sdk'
55
import {
6+
DisconnectedDevice,
67
DisconnectedDeviceDuringOperation,
78
StatusCodes,
89
TransportStatusError,
@@ -53,6 +54,8 @@ export class Ledger {
5354
throw new LedgerConnectError()
5455
} else if (e instanceof DisconnectedDeviceDuringOperation) {
5556
throw new LedgerConnectError()
57+
} else if (e instanceof DisconnectedDevice) {
58+
throw new LedgerConnectError()
5659
}
5760

5861
if (error instanceof TransportStatusError) {

0 commit comments

Comments
 (0)