Reverted to previous profile error flow
This commit is contained in:
parent
6a9d276a4d
commit
adb0cd2404
@ -194,11 +194,11 @@ func (m *Messenger) ProfileByID(id int64, profileFields []string) (Profile, erro
|
||||
qr := QueryResponse{}
|
||||
err = json.Unmarshal(content, &qr)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user