Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Check for callback prior to firing it #545
You can throw errors when no callback is passed. However, many times we do not care what the error is and there would be no reason for a ping back to record an error. It's only informing other systems of status not ensuring they run successful.…
On Mar 4, 2014 1:17 AM, "Gergely Nemeth" ***@***.*** wrote: But it also hide errors - if I forget to pass a callback in, I want to app to break, not to hide it. Also, if you are about to make healtchecks, pingbacks, you need the callback, that's the only way to check for status codes/errors ## Reply to this email directly or view it on GitHubhttps://github.com/drewwells/node-restify/commit/fbca445913d5d2057587ee9b4f2f08a8ed882e2b#commitcomment-5553544 .