Minor
This commit is contained in:
parent
8edf0ae49a
commit
fd46f62908
1 changed files with 1 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ func (t *Token) UnmarshalJSON(data []byte) error {
|
|||
t.Expiry = time.Now().Add(time.Second * time.Duration(s.ExpiresIn))
|
||||
}
|
||||
|
||||
// TODO handle error in DoJSON
|
||||
if s.Error != nil && s.ErrorDescription != nil {
|
||||
err = fmt.Errorf("%s: %s", *s.Error, *s.ErrorDescription)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue