fac19 / week11-where-is-whippy

An ice cream truck finder to connect local ice cream vendors with customers
https://where-is-whippy.netlify.app
1 stars 3 forks source link

Error Handling #81

Open Roger-Heathcote opened 4 years ago

Roger-Heathcote commented 4 years ago

Your API errors are JSON (good!) but they currently leak too much information about your back end e.g. table names, file names and paths, stack traces etc. Although it's great for debugging it's also a security risk. It may be worth considering how you can use an error handling middleware to return less detailed information to the front end users while logging more detailed information on the back end.