Skip to content

Fix error handling for mirage request handlers #2136

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

Merged
merged 8 commits into from
Jan 15, 2020

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jan 15, 2020

We had a lot of mirage request handlers that we failing with Error 500 when requesting unknown crates. This PR adds null checks that result in correct Error 404 responses.

r? @locks

@locks
Copy link
Contributor

locks commented Jan 15, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Jan 15, 2020

📌 Commit a4797e8 has been approved by locks

bors added a commit that referenced this pull request Jan 15, 2020
Fix error handling for mirage request handlers

We had a lot of mirage request handlers that we failing with Error 500 when requesting unknown crates. This PR adds null checks that result in correct Error 404 responses.

r? @locks
@bors
Copy link
Contributor

bors commented Jan 15, 2020

⌛ Testing commit a4797e8 with merge 8561f9e...

@bors
Copy link
Contributor

bors commented Jan 15, 2020

☀️ Test successful - checks-travis
Approved by: locks
Pushing 8561f9e to master...

@bors bors merged commit a4797e8 into rust-lang:master Jan 15, 2020
@Turbo87 Turbo87 deleted the error-handling branch March 30, 2020 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants