From d46fbfe821297f0522b5466f2f6bc73673a7d0a8 Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Wed, 1 Jun 2022 09:17:26 +0200 Subject: [PATCH] Throwing errors that happen in worker so process stops --- packages/cli/commands/worker.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/commands/worker.ts b/packages/cli/commands/worker.ts index 424d5c71b0a0e..cf07c190d3647 100644 --- a/packages/cli/commands/worker.ts +++ b/packages/cli/commands/worker.ts @@ -354,6 +354,7 @@ export class Worker extends Command { process.exit(2); } else { logger.error('Error from queue: ', error); + throw error; } });