File tree 1 file changed +4
-4
lines changed
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 {
22
22
}
23
23
24
24
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 )
27
27
}
28
28
29
29
return nil
@@ -36,8 +36,8 @@ func IsValidLabelName(labelName string) error {
36
36
}
37
37
38
38
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 )
41
41
}
42
42
43
43
return nil
You can’t perform that action at this time.
0 commit comments