clearer error

pull/147/head
Aevann 2023-05-09 21:59:41 +03:00
parent 5f98f25de9
commit cd48fe7e3f
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ def searchmessages(v:User):
sentto = get_user(sentto, graceful=True)
if not sentto:
abort(400, "The `sentto` field must contain a user's username!")
abort(400, "The `sentto` field must contain an existing user's username!")
comments = comments.filter(Comment.sentto == sentto.id)