From ef2501bb4c9b36c98b7f50a48a565727f7919cd2 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 27 Oct 2015 17:05:40 -0600 Subject: [PATCH] Update CLI for new NewClient signature --- cli_handlers.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cli_handlers.go b/cli_handlers.go index 253e1e8d..f295c14c 100644 --- a/cli_handlers.go +++ b/cli_handlers.go @@ -32,7 +32,13 @@ func setup(c *cli.Context) (*Configuration, *Account, *acme.Client) { //TODO: move to account struct? Currently MUST pass email. acc := NewAccount(c.GlobalString("email"), conf) - return conf, acc, acme.NewClient(c.GlobalString("server"), acc, conf.RsaBits(), conf.OptPort()) + + client, err := acme.NewClient(c.GlobalString("server"), acc, conf.RsaBits(), conf.OptPort()) + if err != nil { + logger().Fatal("Could not create client:", err) + } + + return conf, acc, client } func saveCertRes(certRes acme.CertificateResource, conf *Configuration) {