diff --git a/src/lib/queue.ts b/src/lib/queue.ts index 8230784..f348638 100644 --- a/src/lib/queue.ts +++ b/src/lib/queue.ts @@ -126,6 +126,11 @@ const execCommandWithLogging = (cmd: string, job: Job, progress: number) => { reject(new Error(`Command failed with exit code ${code}`)); } }); + + + process.on('error', (err) => { + reject(new Error(`Failed to start process: ${err.message}`)); + }); }); };