aboutsummaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/user.go2
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)
}