Skip to content

Commit

Permalink
Update prometheusvanilla/builders.go
Browse files Browse the repository at this point in the history
Fix error log

Co-Authored-By: Oleg Zaytsev <oleg@zaytsev.es>
  • Loading branch information
mapno and colega committed May 20, 2019
1 parent d276743 commit 26fd7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheusvanilla/builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func maxAgeFromTag(tag reflect.StructTag) (time.Duration, error) {
}
maxAgeDuration, err := time.ParseDuration(maxAgeString)
if err != nil {
return 0, fmt.Errorf("invalid time duration specified: %s", err)
return 0, fmt.Errorf("invalid max_age tag specified: %s", err)
}
return maxAgeDuration, nil
}

0 comments on commit 26fd7f2

Please sign in to comment.