fix: opencode run shouldn't print to stderr (#3341)

This commit is contained in:
Haris Gušić
2025-10-22 02:53:09 +02:00
committed by GitHub
parent 354f5c3281
commit 97c7e941eb
5 changed files with 17 additions and 23 deletions

View File

@@ -20,6 +20,7 @@ import { GithubCommand } from "./cli/cmd/github"
import { ExportCommand } from "./cli/cmd/export"
import { AttachCommand } from "./cli/cmd/attach"
import { AcpCommand } from "./cli/cmd/acp"
import { EOL } from "os"
const cancel = new AbortController()
@@ -130,7 +131,7 @@ try {
const formatted = FormatError(e)
if (formatted) UI.error(formatted)
if (formatted === undefined) {
UI.error("Unexpected error, check log file at " + Log.file() + " for more details\n")
UI.error("Unexpected error, check log file at " + Log.file() + " for more details" + EOL)
console.error(e)
}
process.exitCode = 1