fac-14 / Vent-Bot

A friendly chatbot to offload stressful thoughts on
MIT License
3 stars 3 forks source link

Testing 500 response #59

Open jema28 opened 6 years ago

jema28 commented 6 years ago

500 error responses usually occur when a server fails to do something ie. when one of your functions in a controller (or other parts of the app) error so it would better to do a 500 test in those functions instead of here https://github.com/fac-14/Vent-Bot/blob/master/src/controllers/router.js#L24-L33. Let me know if that makes sense!