Skip to content

Commit

Permalink
Improve error for network liveness check
Browse files Browse the repository at this point in the history
  • Loading branch information
polarker committed Feb 13, 2024
1 parent 343d57a commit d1f70de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export async function isNetworkLive(url: string): Promise<boolean> {
const res = await fetch(`${url}/infos/node`, { method: 'Get' })
return res.status === 200
} catch (e) {
console.error(`Error when checking if network is live: ${e}`)
return false
}
}
Expand Down

0 comments on commit d1f70de

Please sign in to comment.