From c88868c0e407679de46eb045c1379fb8cdfbf9ed Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Sun, 26 May 2019 22:05:09 +0900 Subject: [PATCH] Fix #4986 (#4991) --- src/boot/master.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/master.ts b/src/boot/master.ts index 503f09c1f..6c23a528f 100644 --- a/src/boot/master.ts +++ b/src/boot/master.ts @@ -50,7 +50,7 @@ export async function masterMain() { // initialize app config = await init(); - if (config.port == null) { + if (config.port == null || Number.isNaN(config.port)) { bootLogger.error('The port is not configured. Please configure port.', null, true); process.exit(1); }