mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 22:10:23 +00:00
fix(desktop): show server connection failure
This commit is contained in:
parent
a5301e2ab7
commit
e71bc8c0b0
1 changed files with 4 additions and 1 deletions
|
|
@ -307,7 +307,10 @@ function createGlobalSync() {
|
|||
})
|
||||
|
||||
async function bootstrap() {
|
||||
const health = await globalSDK.client.global.health().then((x) => x.data)
|
||||
const health = await globalSDK.client.global
|
||||
.health()
|
||||
.then((x) => x.data)
|
||||
.catch(() => undefined)
|
||||
if (!health?.healthy) {
|
||||
setGlobalStore(
|
||||
"error",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue