From 2b51be7fd770d9acb52ca3ae4a84d1abf0eda7c5 Mon Sep 17 00:00:00 2001 From: Tobias Weingartner Date: Sun, 17 Apr 2016 14:15:14 -0700 Subject: [PATCH] Better error message. (#768) * Fix PrivateKeyBytes to error out and fail tests on error. * Better error message. --- caddy/https/crypto_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddy/https/crypto_test.go b/caddy/https/crypto_test.go index 936f7349..efa45c65 100644 --- a/caddy/https/crypto_test.go +++ b/caddy/https/crypto_test.go @@ -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") }