mirror of
https://github.com/go-acme/lego.git
synced 2025-03-19 22:19:40 +02:00
Loading an account from file should fail if a integral part is nil.
Fixes #191
This commit is contained in:
parent
96a24777ff
commit
d93c71b61f
@ -64,6 +64,14 @@ func NewAccount(email string, conf *Configuration) *Account {
|
||||
acc.key = privKey
|
||||
acc.conf = conf
|
||||
|
||||
if acc.Registration == nil {
|
||||
logger().Fatalf("Could not load account for %s. Registration is nil.", email)
|
||||
}
|
||||
|
||||
if acc.conf == nil {
|
||||
logger().Fatalf("Could not load account for %s. Configuration is nil.", email)
|
||||
}
|
||||
|
||||
return &acc
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user