mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
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 <sunil@medhas.org>
This commit is contained in:
parent
e21ab91b21
commit
4ae66c034c
@ -49,7 +49,7 @@ KNOWN_ERRORS = [
|
|||||||
'raise_as': errors.BorgRepositoryDoesNotExistError,
|
'raise_as': errors.BorgRepositoryDoesNotExistError,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'errors': ['passphrase supplied in .* is incorrect'],
|
'errors': ['[Pp]assphrase supplied in .* is incorrect'],
|
||||||
'message': _('Incorrect encryption passphrase'),
|
'message': _('Incorrect encryption passphrase'),
|
||||||
'raise_as': errors.BorgError,
|
'raise_as': errors.BorgError,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user