repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c6d4ac
)
refactor: refine worker message handling error message
author
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 14 Aug 2023 14:52:35 +0000
(16:52 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 14 Aug 2023 14:52:35 +0000
(16:52 +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 911c31ca146b2bda5876eeaecdff7b114338fae3..512a822df295d17ba7578302274c4d87e615e9b9 100644
(file)
--- 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