Skip to content

Commit

Permalink
refactor(#35): 🥅 Add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinc committed Oct 20, 2025
1 parent db67e3a commit fe5b4ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import {
async function init() {
window.cesiumViewer = createCesiumViewer('cesiumContainer')

await loadCountryBorders(window.cesiumViewer)
try {
await loadCountryBorders(window.cesiumViewer)
} catch (error) {
console.error('Failed to load country borders:', error)
}

window.potreeViewer = await createPotreeViewer(
'potree_render_area',
Expand Down

0 comments on commit fe5b4ab

Please sign in to comment.