From 3b0daeac3c73cd2b22fbdb90ef26a5987e9f0ae4 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 503f09c1f2..6c23a528fa 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); }