Skip to content

Commit 515009b

Browse files
committed
Fixed incorrect return error in view api
1 parent cdcf394 commit 515009b

File tree

1 file changed

+1
-1
lines changed
  • backend/PyMatcha/routes/api/profile

1 file changed

+1
-1
lines changed

backend/PyMatcha/routes/api/profile/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def view_profile(uid):
3939
raise NotFoundError(f"User {uid} not found.")
4040

4141
if current_user.id == u.id:
42-
raise BadRequestError("Cannot view yoursel")
42+
raise BadRequestError("Cannot view yourself.")
4343
View.create(profile_id=u.id, viewer_id=current_user.id)
4444

4545
user_dict = u.to_dict()

0 commit comments

Comments
 (0)