mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-09 03:03:18 +00:00
Use consola on server error
This commit is contained in:
parent
8cc954d48e
commit
69db642b25
@ -54,6 +54,11 @@ export default class Listener {
|
||||
const protocolOpts = typeof this.https === 'object' ? [ this.https ] : []
|
||||
this._server = protocol.createServer.apply(protocol, protocolOpts.concat(this.app))
|
||||
|
||||
// Listen server error
|
||||
this._server.on('error', (e) => {
|
||||
consola.fatal(e.message);
|
||||
});
|
||||
|
||||
// Prepare listenArgs
|
||||
const listenArgs = this.socket ? { path: this.socket } : { host: this.host, port: this.port }
|
||||
listenArgs.exclusive = false
|
||||
|
Loading…
Reference in New Issue
Block a user