mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 06:20:29 +00:00
wip(desktop): handle more errors
This commit is contained in:
parent
685f3ea324
commit
c523ca4127
5 changed files with 100 additions and 59 deletions
|
|
@ -188,6 +188,10 @@ export function Header(props: {
|
|||
shareURL = await globalSDK.client.session
|
||||
.share({ sessionID: session.id, directory: currentDirectory() })
|
||||
.then((r) => r.data?.share?.url)
|
||||
.catch((e) => {
|
||||
console.error("Failed to share session", e)
|
||||
return undefined
|
||||
})
|
||||
}
|
||||
return shareURL
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue