From fd18bbc76966fdad4c1205a38640cb5dc3c51997 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 20 Oct 2023 18:58:35 +0300 Subject: [PATCH] better error message --- files/routes/awards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 4c4f8ea8d..d2b8db4ac 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -410,7 +410,7 @@ def award_thing(v, thing_type, id): author.namechanged += 86400 else: if not valid_username_regex.fullmatch(new_name): - abort(400, "Invalid username") + abort(400, "You need to enter a valid username to change the recipient to.") existing = get_user(new_name, graceful=True) if existing and existing.id != author.id: