mirror of
https://github.com/caddyserver/caddy.git
synced 2025-03-07 02:37:27 +08:00
Better error message. (#768)
* Fix PrivateKeyBytes to error out and fail tests on error. * Better error message.
This commit is contained in:
parent
376e1090a3
commit
2b51be7fd7
@ -116,5 +116,5 @@ func PrivateKeyBytes(key crypto.PrivateKey) ([]byte, error) {
|
||||
case *ecdsa.PrivateKey:
|
||||
return x509.MarshalECPrivateKey(key)
|
||||
}
|
||||
return nil, errors.New("Bad juju")
|
||||
return nil, errors.New("Unknown private key type")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user