From 032c64f1e4c893663c72451a7f98e57dc40f3817 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 093efde3a5d7ba..d9e0f9f516aba9 100644 --- a/lib/internal/worker.js +++ b/lib/internal/worker.js @@ -215,7 +215,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);