Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
Add stringified value set
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Skillington committed Jul 26, 2018
1 parent d74ee9c commit 788a4e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ func (v *validator) validateMappingRules(mrv []view.MappingRule) error {

// Validate the drop policy is valid.
if !rule.DropPolicy.IsValid() {
return fmt.Errorf("mapping rule '%s' has an invalid drop policy: value=%d, valid_values=%v",
rule.Name, int(rule.DropPolicy), policy.ValidDropPolicies())
return fmt.Errorf("mapping rule '%s' has an invalid drop policy: value=%d, string=%s, valid_values=%v",
rule.Name, int(rule.DropPolicy), rule.DropPolicy.String(), policy.ValidDropPolicies())
}

// Validate the storage policies if drop policy not active, otherwise ensure none.
Expand Down

0 comments on commit 788a4e2

Please sign in to comment.