Closed ghamry03 closed 6 months ago
fetchMainContent()
front_end
checkhealth
showError()
.catch((error) => { showError(`Failed to load content. [${error.message}]`, 'Retry', () => { fetchMainContent(pageUrl, container) }); })
Changes:
fetchMainContent()
function to display an error message on error.front_end
app to return an error response on failure.checkhealth
to the game views that make sure the game service is running before a user get redirected to the game page.fetchMainContent()
changes:showError()
function and modify the button to do a recursive call to try fetching the page again.