From 232fbbef0837ed862bebff3543d13741745e55aa Mon Sep 17 00:00:00 2001 From: Rekby Date: Sun, 10 Apr 2016 16:06:49 +0300 Subject: [PATCH] Fix out of range --- acme/jws.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acme/jws.go b/acme/jws.go index 8435d0cf..ca950e0c 100644 --- a/acme/jws.go +++ b/acme/jws.go @@ -10,6 +10,7 @@ import ( "net/http" "gopkg.in/square/go-jose.v1" + "errors" ) type jws struct { @@ -100,6 +101,7 @@ func (j *jws) Nonce() (string, error) { if err != nil { return nonce, err } + return "", errors.New("Can't get nonce") } nonce, j.nonces = j.nonces[len(j.nonces)-1], j.nonces[:len(j.nonces)-1]