facn5 / NodeJs-AutoComplete

0 stars 1 forks source link

error handling #30

Open shiryz opened 5 years ago

shiryz commented 5 years ago

You need to give the user a meaningful message for when an error occurs Giving the user a screen with error500 doesn't help him https://github.com/facn5/NodeJs-AutoComplete/blob/master/backend/handlers.js#L51

Google's error handling https://goo.gl/images/o45ZP8

shiryz commented 5 years ago

This too https://github.com/facn5/NodeJs-AutoComplete/blob/master/frontend/scripts/xhr.js#L16

The user doesn't understand status codes