From 8bdc5e3ffe0cb09a28ff7918ad3c48b0b7190e44 Mon Sep 17 00:00:00 2001 From: Jesse Peterson Date: Wed, 13 Jun 2018 18:43:35 -0700 Subject: [PATCH] Don't hide error (#435) --- cmd/mdmctl/mdmcert.download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mdmctl/mdmcert.download.go b/cmd/mdmctl/mdmcert.download.go index 7bd2ef83..6e71129d 100644 --- a/cmd/mdmctl/mdmcert.download.go +++ b/cmd/mdmctl/mdmcert.download.go @@ -265,7 +265,7 @@ func (sign *signRequest) HTTPRequest() (*http.Request, error) { func sendMdmcertDownloadRequest(client *http.Client, req *http.Request) error { resp, err := client.Do(req) if err != nil { - return nil + return err } defer resp.Body.Close() if resp.StatusCode != http.StatusOK {