From 5f88d84d3f81278474c63a8926db3bd243af1f55 Mon Sep 17 00:00:00 2001 From: tw93 Date: Mon, 2 Feb 2026 17:18:32 +0800 Subject: [PATCH] fix: update authentication failure messages for clarity --- lib/core/file_ops.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/file_ops.sh b/lib/core/file_ops.sh index a4e739b..3ad9f76 100644 --- a/lib/core/file_ops.sh +++ b/lib/core/file_ops.sh @@ -383,7 +383,7 @@ safe_sudo_remove() { log_operation "${MOLE_CURRENT_COMMAND:-clean}" "FAILED" "$path" "readonly filesystem" return "$MOLE_ERR_READONLY_FS" ;; - *"Sorry, try again"* | *"incorrect password"*) + *"Sorry, try again"* | *"incorrect passphrase"* | *"incorrect credentials"*) log_operation "${MOLE_CURRENT_COMMAND:-clean}" "FAILED" "$path" "auth failed" return "$MOLE_ERR_AUTH_FAILED" ;; @@ -536,7 +536,7 @@ diagnose_removal_failure() { "$MOLE_ERR_AUTH_FAILED") reason="authentication failed" if [[ -f "$touchid_file" ]] && grep -q "pam_tid.so" "$touchid_file" 2> /dev/null; then - suggestion="Check your password or restart Terminal" + suggestion="Check your credentials or restart Terminal" else suggestion="Try 'mole touchid' to enable fingerprint auth" fi