1
0
mirror of synced 2024-11-25 22:36:03 +03:00

Reverted to previous profile error flow

This commit is contained in:
Sergey Parshukov 2019-07-31 13:04:40 +03:00
parent 6a9d276a4d
commit adb0cd2404
No known key found for this signature in database
GPG Key ID: 9D0FB8D5E702923A

View File

@ -194,11 +194,11 @@ func (m *Messenger) ProfileByID(id int64, profileFields []string) (Profile, erro
qr := QueryResponse{} qr := QueryResponse{}
err = json.Unmarshal(content, &qr) err = json.Unmarshal(content, &qr)
if qr.Error != nil { if qr.Error != nil {
return p, xerrors.Errorf("facebook error: %w", qr.Error) err = xerrors.Errorf("facebook error: %w", qr.Error)
} }
} }
return p, nil return p, err
} }
// GreetingSetting sends settings for greeting // GreetingSetting sends settings for greeting