diff options
-rw-r--r-- | app/scripts/background.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 837fd7133..5878cd2e8 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -174,8 +174,11 @@ function setupController (initState, initLangCode) { } function persistData(state) { + if (!state) { + throw new Error('MetaMask - updated state is missing', state) + } if (!state.data) { - throw new Error('MetaMask - updated state is missing data', state) + throw new Error('MetaMask - updated state does not have data', state) } if (localStore.isSupported) { localStore.set(state) |