Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

fix(kuna): retain fallback diagnostics for empty stderr

morluto6d528140702d
diff --git a/src/kuna/KunaCommand.ts b/src/kuna/KunaCommand.ts
index a1629feca..b4f98dda6 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}`,
}),
};
};