EFForg / starttls-frontend

Static front end for the STARTTLS scanner
Other
6 stars 3 forks source link

Differentiate network errors from failed validations #293

Open rubicae opened 4 years ago

rubicae commented 4 years ago

Currently, if a network error is encountered while making a POST request to the API server's validation endpoint, the frontend will report that validation failed when in fact, it may simply be the network connection that failed. This PR differentiates between the two cases and informs the user of what happened. Further information: https://stackoverflow.com/a/28404728