File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ func IsValidMetricName(name string) error {
2222 }
2323
2424 if ! metricNameValidationRegex .Match ([]byte (trimmed )) {
25- return fmt .Errorf ("metric name contains illegal characters. Name should conform to '%s'" ,
26- metricNameValidationRegexStr )
25+ return fmt .Errorf ("metric name contains illegal characters. Name '%s' should conform to '%s'" ,
26+ trimmed , metricNameValidationRegexStr )
2727 }
2828
2929 return nil
@@ -36,8 +36,8 @@ func IsValidLabelName(labelName string) error {
3636 }
3737
3838 if ! labelValidationRegex .Match ([]byte (trimmed )) {
39- return fmt .Errorf ("label name contains illegal characters. Label name should conform to '%s'" ,
40- labelValidationRegexStr )
39+ return fmt .Errorf ("label name contains illegal characters. Label name '%s' should conform to '%s'" ,
40+ trimmed , labelValidationRegexStr )
4141 }
4242
4343 return nil
You can’t perform that action at this time.
0 commit comments