fix(core): Fix crashes in queue mode (#3397)

* Add catch block to avoid crashes when running in queue mode

* Throwing errors that happen in worker so process stops
This commit is contained in:
Omar Ajoue
2022-06-02 12:17:24 +02:00
committed by GitHub
parent 50ff75ecb2
commit 042b8daf1c
2 changed files with 7 additions and 0 deletions

View File

@@ -354,6 +354,7 @@ export class Worker extends Command {
process.exit(2);
} else {
logger.error('Error from queue: ', error);
throw error;
}
});