Prettier error message on OperationError (#2285)
This commit is contained in:
parent
45d7eaf1bb
commit
2ee685d5a9
@ -56,7 +56,8 @@ export function useWalletsQuery () {
|
|||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error('failed to decrypt wallets:', err)
|
console.error('failed to decrypt wallets:', err)
|
||||||
setWallets([])
|
setWallets([])
|
||||||
setError(new Error('decryption error: ' + err.message))
|
// OperationError from the Web Crypto API does not have a message
|
||||||
|
setError(new Error('decryption error: ' + (err.message || err.name)))
|
||||||
})
|
})
|
||||||
}, [query.data, decryptWallet, ready])
|
}, [query.data, decryptWallet, ready])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user