From 1cc8f7f2e34b3f5193968cee7fe8113db27b59fc Mon Sep 17 00:00:00 2001 From: David Siregar <32016658+Dattito@users.noreply.github.com> Date: Tue, 14 Sep 2021 21:28:51 +0200 Subject: [PATCH] fixed wrong description of error --- app/api/views/new_random_alias.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/views/new_random_alias.py b/app/api/views/new_random_alias.py index c67b3aae..19d2e3bd 100644 --- a/app/api/views/new_random_alias.py +++ b/app/api/views/new_random_alias.py @@ -48,7 +48,7 @@ def new_random_alias(): elif mode == "uuid": scheme = AliasGeneratorEnum.uuid.value else: - return jsonify(error=f"{mode} must be either word or alias"), 400 + return jsonify(error=f"{mode} must be either word or uuid"), 400 alias = Alias.create_new_random(user=user, scheme=scheme, note=note) db.session.commit()