fac-15 / DRINKIO

An autocomplete widget to help you choose a beer when you can't seem to type
0 stars 2 forks source link

Error handling 👌🏻 #30

Closed arrested-developer closed 5 years ago

arrested-developer commented 5 years ago

Great use of error first callbacks with the fs module so that errors will give a 500 status.

You could improve this even further by making the message that is sent back more descriptive - how could you describe each error so that the user (or developer debugging the app) can see exactly what went wrong?