0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Better error message. (#768)

* Fix PrivateKeyBytes to error out and fail tests on error.

* Better error message.
This commit is contained in:
Tobias Weingartner 2016-04-17 14:15:14 -07:00 committed by Matt Holt
parent 376e1090a3
commit 2b51be7fd7

View file

@ -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")
}