reference: Do not drop the underlying error message

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-07-01 11:57:43 +02:00
parent 972c6a7113
commit 69dae0a5fb
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
r, err := WithName(named.Name())
if err != nil {