diff --git a/internal/platform/check_resource_account_validity.go b/internal/platform/check_resource_account_validity.go index 52e05e7..b51acbd 100644 --- a/internal/platform/check_resource_account_validity.go +++ b/internal/platform/check_resource_account_validity.go @@ -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)) diff --git a/internal/platform/create_env_type_matching_criteria.go b/internal/platform/create_env_type_matching_criteria.go index 0c4ff30..295e9ed 100644 --- a/internal/platform/create_env_type_matching_criteria.go +++ b/internal/platform/create_env_type_matching_criteria.go @@ -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 }