Skip to content

Commit ec7a3dd

Browse files
committed
fix http status check
1 parent 75e9764 commit ec7a3dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/validation/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func ValidateProject(ctx context.Context, p *print.Printer, cliVersion string, c
3535
// Check for specific HTTP status codes
3636
if httpErr, ok := err.(*oapierror.GenericOpenAPIError); ok { //nolint:errorlint //complaining that error.As should be used to catch wrapped errors, but this error should not be wrapped
3737
switch httpErr.StatusCode {
38-
case http.StatusNotFound, http.StatusForbidden:
38+
case http.StatusForbidden:
3939
// Try to get project name for better error message
4040
projectLabel := projectId
4141
if projectName, nameErr := projectname.GetProjectName(ctx, p, cliVersion, cmd); nameErr == nil {

0 commit comments

Comments
 (0)