From 4ae66c034c5004701c67371b1522ddb73003322b Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 5 Feb 2026 19:03:54 -0800 Subject: [PATCH] backups: Fix showing proper error for incorrect passphrase Tests: - Provide incorrect passphrase when adding a remote repository. Should show a message that passphrase is incorrect and redirect back to add remote repository form. Signed-off-by: Sunil Mohan Adapa --- plinth/modules/backups/privileged.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/backups/privileged.py b/plinth/modules/backups/privileged.py index 9d0a9d4a0..234ab8dcc 100644 --- a/plinth/modules/backups/privileged.py +++ b/plinth/modules/backups/privileged.py @@ -49,7 +49,7 @@ KNOWN_ERRORS = [ 'raise_as': errors.BorgRepositoryDoesNotExistError, }, { - 'errors': ['passphrase supplied in .* is incorrect'], + 'errors': ['[Pp]assphrase supplied in .* is incorrect'], 'message': _('Incorrect encryption passphrase'), 'raise_as': errors.BorgError, },