From cd48fe7e3f1e2a5894e5885b8cc54a1192caa4b6 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 9 May 2023 21:59:41 +0300 Subject: [PATCH] clearer error --- files/routes/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/search.py b/files/routes/search.py index 7c8481409..0952c7a46 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -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)