diff options
-rw-r--r-- | user/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/user/user.go b/user/user.go index 9f31284..704fed7 100644 --- a/user/user.go +++ b/user/user.go @@ -35,7 +35,7 @@ func (c Client) GetSelfUserInfo() (UserInfo, error) { json.Unmarshal([]byte(data), &userData) json.Unmarshal([]byte(data), &errMessage) - if errMessage.Err != nil { + if errMessage.Err != "" { return userData, errors.New(errMessage.Err + " " + errMessage.Msg) } |