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

Better errors #153

Merged
merged 11 commits into from
Apr 18, 2017
Merged

Better errors #153

merged 11 commits into from
Apr 18, 2017

Conversation

abovedave
Copy link
Contributor

@abovedave abovedave commented Apr 12, 2017

Closes #152
Closes #150

@abovedave abovedave requested a review from jimlambie April 12, 2017 15:52
@abovedave abovedave changed the title feat: visual HTTP errors #152 feat: visual HTTP errors Apr 12, 2017
@@ -357,7 +366,16 @@ function notFound (api, req, res) {
path[0].handler(req, res)
} else {
// otherwise, respond with default message
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jimlambie do we need res.setHeader('Content-Type', 'text/html') here as L341?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think we do

@abovedave abovedave changed the title feat: visual HTTP errors Better errors Apr 12, 2017
@jimlambie jimlambie merged commit d17257f into feature/version-2.0 Apr 18, 2017
@jimlambie jimlambie deleted the feature/friendly-errors branch April 18, 2017 11:30
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

Successfully merging this pull request may close these issues.

2 participants