From a5e412910975b18da715c0f78e24f66d8832733e Mon Sep 17 00:00:00 2001 From: chee Date: Wed, 13 May 2020 15:03:24 +0100 Subject: [PATCH] Print previous port number than `true` --- lib/origami-build-tools-cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/origami-build-tools-cli.js b/lib/origami-build-tools-cli.js index f2bffb2c..d53eb77b 100755 --- a/lib/origami-build-tools-cli.js +++ b/lib/origami-build-tools-cli.js @@ -111,7 +111,7 @@ async function startServer(port, previous) { server.on('error', (err) => { if (err.code === 'EADDRINUSE') { - startServer(portfinder.getPortPromise(), true); + startServer(portfinder.getPortPromise(), port); return; }