mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
fix: wait error hook
This commit is contained in:
parent
e594f09914
commit
36ca945d00
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user