mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Add more useful error message
This commit is contained in:
parent
271eb728dd
commit
dafe49355f
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ def profile():
|
|||
if current_user.is_authenticated:
|
||||
user_id = current_user.id
|
||||
else:
|
||||
abort(404)
|
||||
abort(404, 'You must be logged in to view your own profile!')
|
||||
|
||||
# Get the user's data
|
||||
user = db_session.query(db.Users).filter(db.Users.id == user_id).first()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue