Skip to content

Commit

Permalink
Merge pull request #562 from v3io/development
Browse files Browse the repository at this point in the history
clearer error msg (#561)
  • Loading branch information
urihoenig authored Nov 30, 2021
2 parents 00b2fd6 + 57ef0f7 commit 380e244
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/utils/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ func IsValidMetricName(name string) error {
}

if !metricNameValidationRegex.Match([]byte(trimmed)) {
return fmt.Errorf("metric name contains illegal characters. Name should conform to '%s'",
metricNameValidationRegexStr)
return fmt.Errorf("metric name contains illegal characters. Name '%s' should conform to '%s'",
trimmed, metricNameValidationRegexStr)
}

return nil
Expand All @@ -36,8 +36,8 @@ func IsValidLabelName(labelName string) error {
}

if !labelValidationRegex.Match([]byte(trimmed)) {
return fmt.Errorf("label name contains illegal characters. Label name should conform to '%s'",
labelValidationRegexStr)
return fmt.Errorf("label name contains illegal characters. Label name '%s' should conform to '%s'",
trimmed, labelValidationRegexStr)
}

return nil
Expand Down

0 comments on commit 380e244

Please sign in to comment.