diff --git a/src/kuna/KunaCommand.ts b/src/kuna/KunaCommand.ts index a1629feca3..b4f98dda60 100644 --- a/src/kuna/KunaCommand.ts +++ b/src/kuna/KunaCommand.ts @@ -346,7 +346,7 @@ const commandFailure = ( kind: "failed", error: new ProviderAdapterError(KUNA_PROVIDER_ID, operation, { ...details, - userMessage: `kuna ${subcommand} failed${exitCode === undefined || exitCode === null ? "" : ` with exit code ${String(exitCode)}`}: ${capturedOutput?.stderr.trim().split("\n").at(-1) ?? cause.message}`, + userMessage: `kuna ${subcommand} failed${exitCode === undefined || exitCode === null ? "" : ` with exit code ${String(exitCode)}`}: ${capturedOutput?.stderr.trim().split("\n").at(-1) || cause.message}`, }), }; };