File tree 1 file changed +6
-5
lines changed
LongevityWorldCup.Website/wwwroot/onboarding
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -908,15 +908,16 @@ <h2 data-aos="fade" data-aos-duration="700" data-aos-delay="400">1. Character Cr
908
908
window . location . href = '/onboarding/application-review.html#appReviewTitle' ;
909
909
} ) ;
910
910
} 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
+ } ) ;
914
916
} ) ;
915
917
}
916
918
} )
917
919
. 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 ( ( ) => {
920
921
applyButton . disabled = false ;
921
922
applyButton . textContent = 'Apply' ;
922
923
} ) ;
You can’t perform that action at this time.
0 commit comments