Skip to content

Commit 47c4219

Browse files
committed
More elaborate errors
1 parent 3e1229c commit 47c4219

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

LongevityWorldCup.Website/wwwroot/onboarding/convergence.html

+6-5
Original file line numberDiff line numberDiff line change
@@ -908,15 +908,16 @@ <h2 data-aos="fade" data-aos-duration="700" data-aos-delay="400">1. Character Cr
908908
window.location.href = '/onboarding/application-review.html#appReviewTitle';
909909
});
910910
} else {
911-
customAlert('Failed to submit application. Please try again later.').then(() => {
912-
applyButton.disabled = false;
913-
applyButton.textContent = 'Apply';
911+
response.text().then(badResponse => {
912+
customAlert(`Failed to submit application. Please try again later.\n\n${badResponse}`).then(() => {
913+
applyButton.disabled = false;
914+
applyButton.textContent = 'Apply';
915+
});
914916
});
915917
}
916918
})
917919
.catch(error => {
918-
console.error('Error submitting application:', error);
919-
customAlert('An error occurred while submitting your application.').then(() => {
920+
customAlert(`An error occurred while submitting your application:\n\n${error}`).then(() => {
920921
applyButton.disabled = false;
921922
applyButton.textContent = 'Apply';
922923
});

0 commit comments

Comments
 (0)