From a67ddd879de09342d83ef3fa7b8abaf1086ae5ae Mon Sep 17 00:00:00 2001 From: Harshitha KP Date: Tue, 19 May 2020 01:35:29 -0400 Subject: [PATCH] worker: fix variable referencing in template string --- lib/internal/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/worker.js b/lib/internal/worker.js index 48886aee3fef5d..702806e427c4ef 100644 --- a/lib/internal/worker.js +++ b/lib/internal/worker.js @@ -216,7 +216,7 @@ class Worker extends EventEmitter { this[kDispose](); if (customErr) { debug(`[${threadId}] failing with custom error ${customErr} \ - and with reason {customErrReason}`); + and with reason ${customErrReason}`); this.emit('error', new errorCodes[customErr](customErrReason)); } this.emit('exit', code);