mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
sync
This commit is contained in:
parent
374a92181a
commit
8ff65c9ac1
1 changed files with 4 additions and 3 deletions
|
|
@ -40,11 +40,12 @@ Keep the reason short and concise, only one sentence.
|
|||
If the check passed, do not create any file.
|
||||
`)
|
||||
|
||||
// check file exists
|
||||
// parse for reason
|
||||
let reason
|
||||
try {
|
||||
const reason = await Bun.file(filename).text()
|
||||
if (reason) throw new Error(reason)
|
||||
reason = await Bun.file(filename).text()
|
||||
} catch (e) {}
|
||||
if (reason) throw new Error(reason)
|
||||
} finally {
|
||||
Opencode.closeServer()
|
||||
await Auth.revoke()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue