refactor: refine worker termination error message
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 14 Aug 2023 19:11:33 +0000 (21:11 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 14 Aug 2023 19:11:33 +0000 (21:11 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts

index 1d27428e05f3328427977bbda2947fcda9c873a4..f76ad2f55bf4326383077456d7414aa8c023ea2e 100644 (file)
@@ -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`))
         }
       })
     })