chore(lib/modules/native): remove useless String() call on error
This commit is contained in:
parent
5684fa9d8b
commit
4d93159632
1 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ export async function callBridgeMethod<N extends MethodName>(
|
|||
|
||||
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<N extends MethodName>(
|
|||
|
||||
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}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue