This commit is contained in:
Frank 2025-08-28 06:52:56 -04:00
parent 8ff65c9ac1
commit be3fbf6b11
2 changed files with 3 additions and 4 deletions

View file

@ -41,11 +41,11 @@ If the check passed, do not create any file.
`)
// parse for reason
let reason
let content
try {
reason = await Bun.file(filename).text()
content = await Bun.file(filename).json()
} catch (e) {}
if (reason) throw new Error(reason)
if (content) throw new Error(content.reason ?? "unknown reason")
} finally {
Opencode.closeServer()
await Auth.revoke()