Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restify v5.x-compatible version? #9

Open
alexsk opened this issue Aug 6, 2017 · 0 comments
Open

Restify v5.x-compatible version? #9

alexsk opened this issue Aug 6, 2017 · 0 comments

Comments

@alexsk
Copy link

alexsk commented Aug 6, 2017

As of Restify v5.x all errors definitions were moved into the separate repository: restify-errors.

new restify.InvalidVersionError('This is an invalid version') line doesn't work any more.
It should be replaced with something like:

var restifyErrors = require('restify-errors');

return next(new restifyErrors.InvalidVersionError('This is an invalid version'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant