diff --git a/lib/modules/src/native/index.ts b/lib/modules/src/native/index.ts index 6867ac5..1034384 100644 --- a/lib/modules/src/native/index.ts +++ b/lib/modules/src/native/index.ts @@ -59,7 +59,7 @@ export async function callBridgeMethod( throw 'The module did not return a valid result. The native hook must have failed.' } catch (error) { - throw new Error(`Call failed: ${String(error)}`) + throw new Error(`Call failed: ${error}`) } } @@ -84,7 +84,7 @@ export function callBridgeMethodSync( throw 'The module did not return a valid result. The native hook must have failed.' } catch (error) { - throw new Error(`Call failed: ${String(error)}`) + throw new Error(`Call failed: ${error}`) } }