From 52dd07ce2085f0cdc609ed20c426bb71ebf5d163 Mon Sep 17 00:00:00 2001 From: Neysan Foo Date: Mon, 4 Jul 2022 15:24:10 +0800 Subject: [PATCH] fixed try catch --- api/src/job.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/job.js b/api/src/job.js index 2150279..ecc19e5 100644 --- a/api/src/job.js +++ b/api/src/job.js @@ -386,7 +386,7 @@ class Job { // Then clear them out of the process tree try { process.kill(proc, 'SIGKILL'); - } catch { + } catch(e) { // Could already be dead and just needs to be waited on this.logger.debug( `Got error while SIGKILLing process ${proc}:`,