Skip to content

Commit

Permalink
fixup! Treat azure devops redirect response as unauthorized error
Browse files Browse the repository at this point in the history
  • Loading branch information
vinokurig committed Jan 23, 2025
1 parent c289aa1 commit 9d23599
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private <T> T executeRequest(
throw new ScmItemNotFoundException(body);
case HTTP_UNAUTHORIZED:
case HTTP_FORBIDDEN:
// Azure DevOps tries to redirect to the login page if the user is not authorized.
case HTTP_MOVED_TEMP:
throw new ScmUnauthorizedException(body, "azure-devops", "v2", "");
default:
Expand Down

0 comments on commit 9d23599

Please sign in to comment.