From 82de3fe653a61c1b0174fba87c5f1ca06226ed51 Mon Sep 17 00:00:00 2001 From: Emmanuel Odeke Date: Mon, 21 Sep 2015 13:54:35 -0600 Subject: [PATCH] jwt: added missing format specifier Updates golang/oauth#151 Change-Id: I2422dade4d72aa4fc33d9ad922508d2793e4ee27 Reviewed-on: https://go-review.googlesource.com/14779 Reviewed-by: Burcu Dogan --- jws/jws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jws/jws.go b/jws/jws.go index 6e03198..bc7df09 100644 --- a/jws/jws.go +++ b/jws/jws.go @@ -55,7 +55,7 @@ func (c *ClaimSet) encode() (string, error) { c.Exp = now.Add(time.Hour).Unix() } if c.Exp < c.Iat { - return "", fmt.Errorf("jws: invalid Exp must be later than Iat", c.Exp) + return "", fmt.Errorf("jws: invalid Exp = %v; must be later than Iat = %v", c.Exp, c.Iat) } b, err := json.Marshal(c)