Uh oh!
There was an error while loading. Please reload this page.
support "err instanceof http-errors" for all individual errors - #22
support "err instanceof http-errors" for all individual errors#22krmannix wants to merge 1 commit into
Conversation
krmannix
commented
Dec 30, 2015
As mentioned in #21, builds fail for Node.js 0.6 and 0.8 because of dependencies, not due to the PR |
krmannix
commented
Jan 22, 2016
tests now pass for this pr, and rebased with the most current master branch |
dougwilson
commented
Jan 25, 2016
Thanks a lot! I'm currently mulling over this right now. I am 100% for adding another object into the prototype such that they all inherit from it, i.e. Then, after that, I'm thinking, if the My current thoughts are leaning towards the following:
What are your thoughts? If this sounds good or any other thoughts, let me know. I can easily alter your own pull request to reflect this if you are not around to change it, or just don't fell like it because this sounds like a good enough change. |
krmannix
commented
Jan 25, 2016
My thought would be that the Please feel free to change it, and thanks! |
dougwilson
commented
Jan 29, 2016
Nice! And, so here's something that may interest you: so, because this module is depending on too large of a version range of |
krmannix
commented
Jan 29, 2016
👍 awesome! I'd be happy to put some thought in and see if I can help out. where will you be listing your proposed changes? |
dougwilson
commented
Jan 29, 2016
Feel free to make any issues/PRs you like :) When I get rolling, it'll be in a release PR, like what I've done with Express and other modules (example: expressjs/body-parser#66). This would track the merged things and provide an overview of the progress and goals at the top. |
Allows for a broader
instanceofcheck. Rather than needing to check if an error is a specific status code type, one can check for a genericHttpErroras well.