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

Use instanceof NotFoundError for 404 checks #7915

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jan 11, 2024

#7873 and #7851 changed the error messages of 404 errors, but forgot to adjust our frontend code, which relied on these specific error messages to display a more useful error to the users. This PR fixes the issue by relying on the HTTP status code now, instead of checking the error message string.

@Turbo87 Turbo87 added C-bug 🐞 Category: unintended, undesired behavior A-frontend 🐹 labels Jan 11, 2024
@Turbo87 Turbo87 enabled auto-merge (squash) January 11, 2024 08:47
@Turbo87 Turbo87 merged commit b83ddd6 into rust-lang:main Jan 11, 2024
7 checks passed
@Turbo87 Turbo87 deleted the not-found branch January 11, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant