From 10596b601e503512457131b3a09edadbb680d3ec 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 PR-URL: https://github.com/nodejs/node/pull/33467 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- 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 c312c3a1105523..4f01f331349f4c 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);