backups: improve error message

This commit is contained in:
Marek Marczykowski-Górecki 2014-02-05 04:34:30 +01:00
parent 86d3e2f4dd
commit f461c09d89

View File

@ -1010,7 +1010,7 @@ def restore_vm_dirs (backup_source, restore_tmpdir, passphrase, vms_dirs, vms,
pass
if not file_ok:
raise QubesException("Corrupted backup header (hmac verification "
"failed)")
"failed). Is the password correct?")
if os.path.basename(filename) == HEADER_FILENAME:
header_data = parse_backup_header(filename)
if BackupHeader.crypto_algorithm in header_data: