-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve source error message (#138)
Previously, if an endpoint failed to fetch the source, the endpoint would respond with a status 500 and an error message too specific. For example, it could be a "500: bad url" which is not very clear to the user that it's the source url that's broken or an url elsewhere. This commit improves on the error message by providing a more user-friendly message: - http request errors from anywhere in the pipeline will show as a 502 error with the failed status code and the requesting url is returned in the error message - source errors will indicate it's a source error
- Loading branch information
Showing
3 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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