Skip to content

Commit

Permalink
chore: throw original error
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Nov 2, 2023
1 parent 8b9fdd1 commit 1147671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webhid/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ export async function setupXkeysPanel(browserDevice: HIDDevice): Promise<XKeys>
return xkeys
} catch (e) {
await deviceWrap.close()
throw new Error('Failed to initialise device')
throw e
}
}

0 comments on commit 1147671

Please sign in to comment.