diff --git a/app/scripts/lib/local-store.js b/app/scripts/lib/local-store.js index 64e58e29ef7d..8fde2e9111d7 100644 --- a/app/scripts/lib/local-store.js +++ b/app/scripts/lib/local-store.js @@ -97,5 +97,8 @@ function isEmpty (obj) { function checkForError () { const lastError = extension.runtime.lastError if (!lastError) return + // if it quacks like an Error, its an Error + if (lastError.stack && lastError.message) return lastError + // repair incomplete error object (eg chromium v77) return new Error(lastError.message) }