mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
migrator - fix typo
This commit is contained in:
parent
2b880dd4e0
commit
7fdf663ea7
@ -30,7 +30,7 @@ class Migrator extends EventEmitter {
|
||||
versionedData = migratedData
|
||||
} catch (err) {
|
||||
// emit error instead of throw so as to not break the run (gracefully fail)
|
||||
const error = new Error(`MetaMask Migration Error #${version}:\n${err.stack}`)
|
||||
const error = new Error(`MetaMask Migration Error #${migration.version}:\n${err.stack}`)
|
||||
this.emit('error', error)
|
||||
// stop migrating and use state as is
|
||||
return versionedData
|
||||
|
Loading…
Reference in New Issue
Block a user