mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 11:01:18 +00:00
Do not drop the underlying error message when a Docker reference is invalid
This commit is contained in:
parent
e332d0e5d7
commit
429a4b0aec
@ -55,7 +55,7 @@ type Canonical interface {
|
||||
func ParseNamed(s string) (Named, error) {
|
||||
named, err := distreference.ParseNamed(s)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Error parsing reference: %q is not a valid repository/tag", s)
|
||||
return nil, fmt.Errorf("Error parsing reference: %q is not a valid repository/tag: %s", s, err.Error())
|
||||
}
|
||||
r, err := WithName(named.Name())
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user