-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch most uses of Error::Unsupported to Error::NotAvailable
`Unsupported` is meant to express things that are not supported by the platform, for example trying to make a request with "HTTP/4". `NotAvailable` is meant to express things that are not available or unimplemented in Viceroy. Previously, `Unsupported` would return `FastlyStatus::Unsupported` and `NotAvailable` would return the generic `FastlyStatus::Error`. This led to a bad user experience for the `NotAvailable` case, as the user would see an opaque and generic "Error" message rather than "Unsupported". The previous commit fixes this by having both `Unsupported` and `NotAvailable` return `FastlyStatus::Unsupported`. This commit makes our use of `NotAvailable` consistent.
- Loading branch information
Showing
2 changed files
with
21 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters