jwt: added missing format specifier

Updates golang/oauth#151

Change-Id: I2422dade4d72aa4fc33d9ad922508d2793e4ee27
Reviewed-on: https://go-review.googlesource.com/14779
Reviewed-by: Burcu Dogan <jbd@google.com>
This commit is contained in:
Emmanuel Odeke 2015-09-21 13:54:35 -06:00 committed by Burcu Dogan
parent d5ff5ab876
commit 82de3fe653
1 changed files with 1 additions and 1 deletions

View File

@ -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)