From cfde33e38c5ca95789c35b1401577b84769b4b40 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Thu, 29 Jan 2026 06:37:34 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Improve=20error=20messa?= =?UTF-8?q?ge=20formatting=20for=20health=20check=20failures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/utils/deploy-pokedex.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/code/utils/deploy-pokedex.js b/code/utils/deploy-pokedex.js index 532be1c..8438a76 100644 --- a/code/utils/deploy-pokedex.js +++ b/code/utils/deploy-pokedex.js @@ -498,14 +498,21 @@ async function deploy() { console.log(' Checking frontend...'); const frontendHealthy = await healthCheck(sshConfig.host, config.port); if (!frontendHealthy) { - throw new Error('Frontend health check failed - container is not responding'); + throw new Error( + 'Frontend health check failed - container is not responding' + ); } console.log(' ✅ Frontend healthy'); console.log(' Checking backend...'); - const backendHealthy = await healthCheck(sshConfig.host, config.backendPort); + const backendHealthy = await healthCheck( + sshConfig.host, + config.backendPort + ); if (!backendHealthy) { - throw new Error('Backend health check failed - container is not responding'); + throw new Error( + 'Backend health check failed - container is not responding' + ); } console.log(' ✅ Backend healthy');