You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("failed to retrieve friend request from %s to %s: %w", friendRequest.FromUserID, friendRequest.ToUserID, err)
215
+
returnerr
218
216
}
219
217
220
218
// Check if the friend request has already been handled.
221
219
iffr.HandleResult!=0 {
222
-
returnfmt.Errorf("friend request from %s to %s has already been processed", friendRequest.FromUserID, friendRequest.ToUserID)
220
+
returnservererrs.ErrFriendRequestHandled.WrapMsg("friend request has already been processed", "from", friendRequest.FromUserID, "to", friendRequest.ToUserID)
223
221
}
224
222
225
223
// Log the action of refusing the friend request for debugging and auditing purposes.
0 commit comments