From ff664486ffd3f16d72d1e0a61fc151f4adf664d3 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 9 Feb 2022 19:23:18 -0800 Subject: [PATCH] do not start if platform.start does not work --- src/platform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform.js b/src/platform.js index 2d22cf425..d6840205b 100644 --- a/src/platform.js +++ b/src/platform.js @@ -63,7 +63,7 @@ async function start(options) { // LOST is when existing connection breaks. REFUSED is when new connection cannot connect at all const retry = error.reason === BoxError.DATABASE_ERROR && (error.code === 'PROTOCOL_CONNECTION_LOST' || error.code === 'ECONNREFUSED'); debug(`Failed to start services. retry=${retry} (attempt ${attempt}): ${error.message}`); - if (!retry) break; + if (!retry) throw error; // refuse to start await delay(10000); } }