mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
add err log
This commit is contained in:
parent
3aa722b42c
commit
c21639c984
1 changed files with 6 additions and 1 deletions
|
|
@ -450,7 +450,12 @@ export namespace Provider {
|
|||
}
|
||||
}
|
||||
})
|
||||
.catch(() => undefined)
|
||||
.catch((error) => {
|
||||
log.error("failed to find last used model", {
|
||||
error,
|
||||
})
|
||||
return undefined
|
||||
})
|
||||
|
||||
if (lastused) return lastused
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue