Prettier error message on OperationError (#2285)

This commit is contained in:
ekzyis 2025-07-16 20:25:31 +02:00 committed by GitHub
parent 45d7eaf1bb
commit 2ee685d5a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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])