Thuzi/facebook-node-sdk — pull request #56 by louisameline (2014-04-30 10:15:22+00:00)
Title: Fixed the way custom errors are created

As some people pointed out to me on StackOverflow, the correct way to create custom errors is by passing an instance of Error as prototype, not Error's prototype itself.
See comments here : http://stackoverflow.com/questions/23377382/how-do-i-determine-if-a-variable-is-an-error-in-javascript#23377596