better error message

pull/216/head
Aevann 2023-10-20 18:58:35 +03:00
parent 1e5e7c8781
commit fd18bbc769
1 changed files with 1 additions and 1 deletions

View File

@ -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: