Skip to content

Commit

Permalink
util/errors: Use "403 Forbidden" for GitHub permission errors (#8028)
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 authored Jan 30, 2024
1 parent 9510a50 commit c59eaed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ impl From<JoinError> for BoxedAppError {
impl From<GitHubError> for BoxedAppError {
fn from(error: GitHubError) -> Self {
match error {
GitHubError::Permission(_) => cargo_err(
GitHubError::Permission(_) => custom(
StatusCode::FORBIDDEN,
"It looks like you don't have permission \
to query a necessary property from GitHub \
to complete this request. \
Expand Down

0 comments on commit c59eaed

Please sign in to comment.