Merge pull request #619 from Dattito/fix-wrong-description-of-error

fixed wrong description of error
This commit is contained in:
Son Nguyen Kim 2021-09-15 11:23:11 +02:00 committed by GitHub
commit da0ddd5a34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()