Skip to content

Commit

Permalink
chore: improve messaging when workspace configs conflict with global … (
Browse files Browse the repository at this point in the history
  • Loading branch information
kkunapuli authored and thiagodallacqua-hpe committed Oct 28, 2024
1 parent 941ceff commit 2babcd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/internal/configpolicy/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ func ValidateExperimentConfig(
// Verify the workspace invariant config doesn't conflict with global constraints.
if err := checkConstraintConflicts(globalConstraints, cp.InvariantConfig.RawResources.RawMaxSlots,
cp.InvariantConfig.RawResources.RawSlotsPerTrial, cp.InvariantConfig.RawResources.RawPriority); err != nil {
return status.Errorf(codes.InvalidArgument, fmt.Sprintf(InvalidExperimentConfigPolicyErr+": %s.", err))
return status.Errorf(codes.InvalidArgument, fmt.Sprintf(InvalidExperimentConfigPolicyErr+
": workspace invariant_config conflicts with global constraints: %s.", err))
}
}
}
Expand Down

0 comments on commit 2babcd4

Please sign in to comment.