Skip to content
This repository was archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Add key size unit in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Mar 11, 2019
1 parent 5c6ce22 commit 4f594b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func parsePublicKey(s string) (*queryResult, error) {
res.KeyAlgo = "rsa"
case "ed25519":
if len(b) != ed25519.PublicKeySize {
return nil, permFailError(fmt.Sprintf("invalid Ed25519 public key size: %v", len(b)))
return nil, permFailError(fmt.Sprintf("invalid Ed25519 public key size: %v bytes", len(b)))
}
ed25519Pub := ed25519.PublicKey(b)
res.Verifier = ed25519Verifier{ed25519Pub}
Expand Down

0 comments on commit 4f594b5

Please sign in to comment.