Skip to content
Snippets Groups Projects
Unverified Commit 6d6b2f52 authored by asraa's avatar asraa Committed by GitHub
Browse files

fix validation error (#503)


Signed-off-by: default avatarAsra Ali <asraa@google.com>
parent 57b3fef4
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,7 @@ func (v *V001Entry) validate() error {
}
v.sigObj, err = artifactFactory.NewSignature(bytes.NewReader(sig.Content))
if err != nil {
return errors.Wrap(err, "creating new signature object")
return types.ValidationError(err)
}
key := sig.PublicKey
......@@ -167,7 +167,7 @@ func (v *V001Entry) validate() error {
}
v.keyObj, err = artifactFactory.NewPublicKey(bytes.NewReader(key.Content))
if err != nil {
return errors.Wrap(err, "creating new public key object")
return types.ValidationError(err)
}
data := v.HashedRekordObj.Data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment