From cc428c77821ae722429f991347e1518ccaaca60b Mon Sep 17 00:00:00 2001 From: Emily Xiong Date: Thu, 26 Sep 2024 15:50:07 -0400 Subject: [PATCH] fix(core): log error for runTaskInForkedProcess (#28078) ## Current Behavior ## Expected Behavior ## Related Issue(s) Fixes https://github.com/nrwl/nx/issues/26594 --- packages/nx/src/tasks-runner/task-orchestrator.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nx/src/tasks-runner/task-orchestrator.ts b/packages/nx/src/tasks-runner/task-orchestrator.ts index d809a4fea62d7..10bdaa63bf6f2 100644 --- a/packages/nx/src/tasks-runner/task-orchestrator.ts +++ b/packages/nx/src/tasks-runner/task-orchestrator.ts @@ -528,6 +528,9 @@ export class TaskOrchestrator { terminalOutput, }; } catch (e) { + if (process.env.NX_VERBOSE_LOGGING === 'true') { + console.error(e); + } return { code: 1, };