lotus-1 / correncyNN

week-5Project
0 stars 1 forks source link

Catching the error on the frontend #18

Open shiryz opened 5 years ago

shiryz commented 5 years ago

https://github.com/lotus-1/correncyNN/blob/master/public/main.js#L24

While you are trying to handle the error and it does get to that, the new text is not appended to the html

Noorb7188 commented 5 years ago

I know :sob: , it was working untill the user enters a wrong value -> the url "breaks" and refuse to work again until we refresh the page so i added an if statement in my converthandler that will excute the function only if the value of the input is valid :confused: which , which overcome the .catch in fetch :confused: