fix(config): handle write errors when updating schema in opencode config (#8125)
This commit is contained in:
parent
f4f8f2d151
commit
c0b214232d
1 changed files with 1 additions and 1 deletions
|
|
@ -1159,7 +1159,7 @@ export namespace Config {
|
|||
if (parsed.success) {
|
||||
if (!parsed.data.$schema) {
|
||||
parsed.data.$schema = "https://opencode.ai/config.json"
|
||||
await Bun.write(configFilepath, JSON.stringify(parsed.data, null, 2))
|
||||
await Bun.write(configFilepath, JSON.stringify(parsed.data, null, 2)).catch(() => {})
|
||||
}
|
||||
const data = parsed.data
|
||||
if (data.plugin) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue