forked from rDrama/rDrama
better error message
parent
1e5e7c8781
commit
fd18bbc769
|
@ -410,7 +410,7 @@ def award_thing(v, thing_type, id):
|
||||||
author.namechanged += 86400
|
author.namechanged += 86400
|
||||||
else:
|
else:
|
||||||
if not valid_username_regex.fullmatch(new_name):
|
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)
|
existing = get_user(new_name, graceful=True)
|
||||||
if existing and existing.id != author.id:
|
if existing and existing.id != author.id:
|
||||||
|
|
Loading…
Reference in New Issue