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:
parent
376e1090a3
commit
2b51be7fd7
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue