Skip to content

Commit dda7895

Browse files
committed
Propagate error message for verifier when crypto algo not supported
1 parent aaea07e commit dda7895

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

verifying.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (v *verifier) Verify(pKey crypto.PublicKey, algo Algorithm) error {
7070
if err == nil {
7171
return v.macVerify(m, pKey)
7272
}
73-
return fmt.Errorf("no crypto implementation available for %q", algo)
73+
return fmt.Errorf("no crypto implementation available for %q: %s", algo, err)
7474
}
7575

7676
func (v *verifier) macVerify(m macer, pKey crypto.PublicKey) error {

0 commit comments

Comments
 (0)