From e47ac316c56df6e19b2555f0e1ab892452be1d18 Mon Sep 17 00:00:00 2001 From: Anthony Bushara Date: Fri, 25 Oct 2024 10:13:29 -0400 Subject: [PATCH] chore: have process exit with error if condition is met --- cron/sp/app.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/cron/sp/app.mjs b/cron/sp/app.mjs index 14dab82b2..acbc7f156 100644 --- a/cron/sp/app.mjs +++ b/cron/sp/app.mjs @@ -101,6 +101,7 @@ async function main() { console.log('Response', response); } catch (error) { console.error('Error:', error); + process.exitCode = 1; } }