Skip to content

Commit

Permalink
Edit secret deletion error message
Browse files Browse the repository at this point in the history
Co-authored-by: Sujen Shah <[email protected]>
  • Loading branch information
bsatoriu and sujen1412 authored Aug 15, 2024
1 parent 141099a commit 9ceb775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/endpoints/members.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def post(self):
secret = db.session.query(MemberSecret_db).filter_by(member_id=member.id, secret_name=secret_name).first()

if secret is not None:
return err_response(msg="Secret already exists with name {}".format(secret_name))
return err_response(msg="Secret already exists with name {}. Please delete and re-create the secret to update it's value. ".format(secret_name))

encrypted_secret = fernet.encrypt(secret_value.encode()).decode("utf-8")

Expand Down

0 comments on commit 9ceb775

Please sign in to comment.