wip(desktop): handle more errors

This commit is contained in:
Adam
2025-12-27 05:19:03 -06:00
parent 685f3ea324
commit c523ca4127
5 changed files with 100 additions and 59 deletions

View File

@@ -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
},