mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-01 19:27:48 +02:00
Prettier formatting fixes
This commit is contained in:
parent
a49787a56e
commit
d14dff7480
1 changed files with 18 additions and 15 deletions
|
@ -35,7 +35,9 @@ program.option('--port <number>', 'Specify port number').parse(process.argv);
|
|||
|
||||
const port = parseInt(program.port, 10) || 3000;
|
||||
|
||||
tcpPortUsed.check(port, 'localhost').then(function(inUse) {
|
||||
tcpPortUsed
|
||||
.check(port, 'localhost')
|
||||
.then(function(inUse) {
|
||||
if (inUse) {
|
||||
console.error(chalk.red('Port ' + port + ' is in use'));
|
||||
process.exit(1);
|
||||
|
@ -45,7 +47,8 @@ tcpPortUsed.check(port, 'localhost').then(function(inUse) {
|
|||
const server = require('./server/server.js');
|
||||
server(port);
|
||||
}
|
||||
}).catch(function(ex) {
|
||||
})
|
||||
.catch(function(ex) {
|
||||
setTimeout(function() {
|
||||
throw ex;
|
||||
}, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue