Commit fbad2bcd authored by segfault's avatar segfault

Fix title of unlock-veracrypt-volume error dialog in case of incorrect password (refs: #17668)

cryptsetup returns a "Failed to load device's parameters" error message
in case of an incorrect password, so we should tell the user that they
probably entered an incorrect password.

I'm not sure if the error message changed since we introduced
unlock-veracrypt-volume or if we overlooked this issue.
parent 604a63ee
......@@ -224,7 +224,8 @@ class Volume(object):
logger.exception(e)
if "No key available with this passphrase" in e.message or \
"No device header detected with this passphrase" in e.message:
"No device header detected with this passphrase" in e.message or \
"Failed to load device's parameters" in e.message:
title = _("Wrong passphrase or parameters")
else:
title = _("Error unlocking volume")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment