1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/controllers
Thomas Huang 02a4da9ad2
Fix 12145 - Ledger errors being set as Error: [object, object] (#12176)
* Fixes #12145

When transactions fail, preserve error message when presented with an error object. Fallback to stringified error for other cases.

* Perserve error stack when err.stack is present, else set stack to message.

* Use optional chaining
2021-09-22 10:41:23 -07:00
..
ens
network
permissions
transactions
alert.js
app-state.js
cached-balances.js
cached-balances.test.js
detect-tokens.js
detect-tokens.test.js
incoming-transactions.js
incoming-transactions.test.js
metametrics.js
metametrics.test.js
onboarding.js
preferences.js
preferences.test.js
swaps.js
swaps.test.js
threebox.js
token-rates-controller.test.js
token-rates.js