From: Jérôme Benoit Date: Mon, 14 Aug 2023 14:52:35 +0000 (+0200) Subject: refactor: refine worker message handling error message X-Git-Tag: v2.6.26~35 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=283b4a1183daabc04d40a567c0c2ee8ba98dbe27;p=poolifier.git refactor: refine worker message handling error message Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 911c31ca..512a822d 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -301,7 +301,7 @@ export abstract class AbstractWorker< if (this.isMain) { throw new Error('Cannot handle message to worker in main worker') } else if (message.workerId != null && message.workerId !== this.id) { - throw new Error('Message worker id does not match worker id') + throw new Error('Message worker id does not match the worker id') } else if (message.workerId === this.id) { if (message.statistics != null) { // Statistics message received