diff --git a/packages/webhid/src/methods.ts b/packages/webhid/src/methods.ts index 1cf211a..96b57df 100644 --- a/packages/webhid/src/methods.ts +++ b/packages/webhid/src/methods.ts @@ -63,6 +63,6 @@ export async function setupXkeysPanel(browserDevice: HIDDevice): Promise return xkeys } catch (e) { await deviceWrap.close() - throw new Error('Failed to initialise device') + throw e } }