fix style

This commit is contained in:
Ricardo Gobbo de Souza 2018-11-27 19:00:56 -02:00 committed by GitHub
parent 1113b5d117
commit 96df3176e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,14 +75,14 @@ export default class Listener {
// Set this.listening to true
this.listening = true
}
errorHandler(e) {
const errors = {
EACCES: 'Permission denied. Does your user have permission?',
EADDRINUSE: `Address \`${this.host}:${this.port}\` is already in use. Do you run another service on the same port?`,
EDQUOT: 'Disk quota exceeded. Do you have space in disk?'
};
consola.error(errors[e.code] || e);
}
consola.error(errors[e.code] || e)
}
}