repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1af34e
)
refactor: refine worker message handling error messsage
author
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 14 Aug 2023 19:44:00 +0000
(21:44 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 14 Aug 2023 19:44:00 +0000
(21:44 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/abstract-worker.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/worker/abstract-worker.ts
b/src/worker/abstract-worker.ts
index 5a61f1cf00126252d71a684e0fd57e242b3b7127..6bf84b875622ebaece3d8b4b8dae3c637593ed68 100644
(file)
--- a/
src/worker/abstract-worker.ts
+++ b/
src/worker/abstract-worker.ts
@@
-301,7
+301,9
@@
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 the worker id')
+ throw new Error(
+ `Message worker id ${message.workerId} does not match the worker id ${this.id}`
+ )
} else if (message.workerId === this.id) {
if (message.statistics != null) {
// Statistics message received