Merge pull request #24213 from runcom/reference-underlying-error
reference: Do not drop the underlying error message Upstream-commit: 9ba5e0fa725e3ffa592473283d9a52213dc09638 Component: engine
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user