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);