diff --git a/packages/databricks-vscode/src/cli/CliWrapper.ts b/packages/databricks-vscode/src/cli/CliWrapper.ts index ac12da77c..7c8b30f06 100644 --- a/packages/databricks-vscode/src/cli/CliWrapper.ts +++ b/packages/databricks-vscode/src/cli/CliWrapper.ts @@ -176,7 +176,8 @@ export async function waitForProcess( if (code === 0) { resolve(); } else { - reject(new ProcessError(stderr.join(""), code)); + const message = onStdError ? "" : stderr.join(""); + reject(new ProcessError(message, code)); } }); p.on("error", (e) => new ProcessError(e.message, null)); diff --git a/packages/databricks-vscode/src/logger/LoggerManager.ts b/packages/databricks-vscode/src/logger/LoggerManager.ts index 7d29f5933..bee41d358 100644 --- a/packages/databricks-vscode/src/logger/LoggerManager.ts +++ b/packages/databricks-vscode/src/logger/LoggerManager.ts @@ -128,7 +128,9 @@ export class LoggerManager { format((info) => info.level === level && info)(), format.timestamp(), format.printf((info) => { - return `${info.bundleOpName}: ${info.message}`; + const name = + info.bundleOpName ?? info.error?.bundleOpName; + return `${name}: ${info.message}`; }) ), level,