Skip to content

Commit

Permalink
fix: wait error hook
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Jan 15, 2019
1 parent e594f09 commit 36ca945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/hookable.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class Hookable {
try {
await sequence(this._hooks[name], fn => fn(...args))
} catch (err) {
name !== 'error' && this.callHook('error', err)
name !== 'error' && await this.callHook('error', err)
consola.fatal(err)
}
}
Expand Down

0 comments on commit 36ca945

Please sign in to comment.