From: Jérôme Benoit Date: Mon, 14 Aug 2023 19:11:33 +0000 (+0200) Subject: refactor: refine worker termination error message X-Git-Tag: v2.6.26~29 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e1af34e6d9705f4ed27c94021b00cd421038ebe3;p=poolifier.git refactor: refine worker termination error message Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 1d27428e..f76ad2f5 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -703,7 +703,7 @@ export abstract class AbstractPool< if (message.kill === 'success') { resolve() } else if (message.kill === 'failure') { - reject(new Error('Worker kill message handling failed')) + reject(new Error(`Worker ${workerId} kill message handling failed`)) } }) })