Skip to content

Commit

Permalink
Ed25519PublicKeyFromString: Show invalid public key in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mehcode committed Mar 30, 2020
1 parent 75f1927 commit 9ae59aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func Ed25519PublicKeyFromString(s string) (Ed25519PublicKey, error) {
return pk, nil
}
}
return Ed25519PublicKey{}, newErrBadKeyf("invalid public key string with length %v", len(s))
return Ed25519PublicKey{}, newErrBadKeyf("invalid public key '%v' string with length %v", s, len(s))
}

// Ed25519PublicKeyFromBytes constructs a known Ed25519PublicKey from its text-encoded representation.
Expand Down

0 comments on commit 9ae59aa

Please sign in to comment.