diff --git a/castai/resource_organization_group.go b/castai/resource_organization_group.go index 6909861d..831b6b29 100644 --- a/castai/resource_organization_group.go +++ b/castai/resource_organization_group.go @@ -110,7 +110,7 @@ func resourceOrganizationGroupCreate(ctx context.Context, data *schema.ResourceD var err error organizationID, err = getDefaultOrganizationId(ctx, meta) if err != nil { - return diag.FromErr(fmt.Errorf("getting default organization: %w", err)) + return diag.Errorf("getting default organization: %w", err) } }