Skip to content

Commit

Permalink
🔄 synced local 'internal/' with remote 'internal/'
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanitecBot committed Dec 4, 2024
1 parent 332f565 commit a1c9bdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/platform/check_resource_account_validity.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ func (p *HumanitecPlatform) CheckResourceAccountValidity(ctx context.Context, ac
}
return result, nil
case 400:
result.Error = &resp.JSON400.Error
errorMessage := fmt.Sprintf("%s - %s", resp.JSON400.Error, resp.JSON400.Message)
result.Error = &errorMessage
return result, nil
default:
return result, fmt.Errorf("humanitec API returned unexpected status code: %d with body: %s", resp.StatusCode(), string(resp.Body))
Expand Down
2 changes: 1 addition & 1 deletion internal/platform/create_env_type_matching_criteria.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (p *HumanitecPlatform) CreateEnvTypeAndResIdMatchingCriteria(ctx context.Co
return fmt.Errorf("humanitec API returned unexpected status code: %d with body: %s", createMatchingCriteriaResp.StatusCode(), string(createMatchingCriteriaResp.Body))
}

message.Warning("Matching criteria created successfully: %+v", createMatchingCriteriaResp)
message.Warning("Matching criteria created successfully")

return nil
}

0 comments on commit a1c9bdf

Please sign in to comment.