From d4d9fb88fd0b297c49297f7521f82f08bba5e8a2 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 6 Nov 2022 00:49:44 -0400 Subject: [PATCH] Updated quick-unlock failure error message Former-commit-id: bd491483ab2b0d09ccfb6c007c786262553d66a7 [formerly 8b8e0c510f6cd8676967595163c29404170d39e0] Former-commit-id: 6a64c402f0687bc3babb0370cd0785a6b2e487f7 --- lib/sshyp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 7fb3f43..40c8710 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -160,8 +160,8 @@ def decrypt(_entry_dir, _shm_folder, _shm_entry, _gpg_com, _quick_pass, run(_unlock_method + _output_target, shell=True, stderr=PIPE, check=True, close_fds=True) except CalledProcessError: if not isinstance(_quick_pass, bool): - print('\n\u001b[38;5;9merror: your sshyp server is unreachable or quick-unlock is incorrectly ' - 'configured\n\nfalling back to standard unlock\u001b[0m\n') + print('\n\u001b[38;5;9merror: quick-unlock failed as a result of an incorrect passphrase, an unreachable ' + 'sshyp server, or an invalid configuration\n\nfalling back to standard unlock\u001b[0m\n') try: run(f"{_gpg_com} -qd --output {_output_target}", shell=True, stderr=PIPE, check=True, close_fds=True)