fix: prevent [object Object] error display in console output (#8116)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
lemon
2026-01-13 10:40:03 +08:00
committed by GitHub
parent eb2044989e
commit efaa9166fb
3 changed files with 6 additions and 6 deletions

View File

@@ -147,7 +147,7 @@ try {
if (formatted) UI.error(formatted)
if (formatted === undefined) {
UI.error("Unexpected error, check log file at " + Log.file() + " for more details" + EOL)
console.error(e)
console.error(e instanceof Error ? e.message : String(e))
}
process.exitCode = 1
} finally {