diff --git a/acme/jws.go b/acme/jws.go index 1b4d29d5..3b77cd49 100644 --- a/acme/jws.go +++ b/acme/jws.go @@ -41,7 +41,10 @@ func (j *jws) post(url string, content []byte) (*http.Response, error) { } resp, err := httpPost(url, "application/jose+json", bytes.NewBuffer([]byte(signedContent.FullSerialize()))) - + if err != nil { + return nil, fmt.Errorf("Failed to HTTP POST to %s -> %s", url, err.Error()) + } + // Even in case of an error, the response should still contain a nonce. nonce, nonceErr := getNonceFromResponse(resp) if nonceErr == nil {