ostree: include ref in error message when invalid
This commit is contained in:
parent
417d913439
commit
db345d75dd
2 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ func ResolveParams(params OSTreeRequest, imageType distro.ImageType) (OSTreeRequ
|
|||
if resolved.Ref == "" {
|
||||
resolved.Ref = imageType.OSTreeRef()
|
||||
} else if !VerifyRef(params.Ref) { // only verify if specified in params
|
||||
return resolved, fmt.Errorf("Invalid ostree ref")
|
||||
return resolved, fmt.Errorf("Invalid ostree ref %q", params.Ref)
|
||||
}
|
||||
|
||||
resolved.URL = params.URL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue