Skip to content

Commit

Permalink
style: fix few stylings
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed May 8, 2020
1 parent 6ebbe64 commit 5ffb65a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,18 @@ export class Store {
}
}
resolve(res)
}, e => {
}, error => {
try {
this._actionSubscribers
.filter(sub => sub.error)
.forEach(sub => sub.error(action, this.state, e))
} catch (_e) {
.forEach(sub => sub.error(action, this.state, error))
} catch (e) {
if (__DEV__) {
console.warn(`[vuex] error in error action subscribers: `)
console.error(_e)
console.error(e)
}
}
reject(e)
reject(error)
})
})
}
Expand Down

0 comments on commit 5ffb65a

Please sign in to comment.