Commit 2b51be7f authored by Tobias Weingartner's avatar Tobias Weingartner Committed by Matt Holt

Better error message. (#768)

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

* Better error message.
parent 376e1090
...@@ -116,5 +116,5 @@ func PrivateKeyBytes(key crypto.PrivateKey) ([]byte, error) { ...@@ -116,5 +116,5 @@ func PrivateKeyBytes(key crypto.PrivateKey) ([]byte, error) {
case *ecdsa.PrivateKey: case *ecdsa.PrivateKey:
return x509.MarshalECPrivateKey(key) return x509.MarshalECPrivateKey(key)
} }
return nil, errors.New("Bad juju") return nil, errors.New("Unknown private key type")
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment