mirror of
https://github.com/containers/skopeo.git
synced 2025-07-30 22:20:20 +00:00
commit
837fc231a9
@ -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 {
|
||||
|
@ -363,7 +363,7 @@ func (kt *sbKeyType) UnmarshalJSON(data []byte) error {
|
||||
// newPRSignedBaseLayer is NewPRSignedBaseLayer, except it returns the private type.
|
||||
func newPRSignedBaseLayer(baseLayerIdentity PolicyReferenceMatch) (*prSignedBaseLayer, error) {
|
||||
if baseLayerIdentity == nil {
|
||||
return nil, InvalidPolicyFormatError("baseLayerIdenitty not specified")
|
||||
return nil, InvalidPolicyFormatError("baseLayerIdentity not specified")
|
||||
}
|
||||
return &prSignedBaseLayer{
|
||||
prCommon: prCommon{Type: prTypeSignedBaseLayer},
|
||||
|
Loading…
Reference in New Issue
Block a user