Skip to content

Commit

Permalink
shared/version: Show parsed version on failure
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Aug 25, 2023
1 parent 3b0b402 commit 178d7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func Parse(s string) (*DottedVersion, error) {

matches := r.FindStringSubmatch(s)
if len(matches) == 0 {
return nil, fmt.Errorf("Can't parse a version")
return nil, fmt.Errorf("Can't parse a version: %s", s)
}

return NewDottedVersion(matches[1])
Expand Down

0 comments on commit 178d7a6

Please sign in to comment.