backups: improve error reporting during restore
This commit is contained in:
parent
668bb1fdf6
commit
568ce68ca5
@ -129,6 +129,7 @@ class RestoreVMsWindow(Ui_Restore, QWizard):
|
|||||||
self.target_appvm = self.qvm_collection.get_vm_by_name(
|
self.target_appvm = self.qvm_collection.get_vm_by_name(
|
||||||
str(self.appvm_combobox.currentText()))
|
str(self.appvm_combobox.currentText()))
|
||||||
|
|
||||||
|
try:
|
||||||
self.restore_tmpdir, qubes_xml = backup.backup_restore_header(
|
self.restore_tmpdir, qubes_xml = backup.backup_restore_header(
|
||||||
str(self.backup_location),
|
str(self.backup_location),
|
||||||
str(self.passphrase_line_edit.text()),
|
str(self.passphrase_line_edit.text()),
|
||||||
@ -145,6 +146,8 @@ class RestoreVMsWindow(Ui_Restore, QWizard):
|
|||||||
|
|
||||||
for vmname in self.vms_to_restore:
|
for vmname in self.vms_to_restore:
|
||||||
self.select_vms_widget.available_list.addItem(vmname)
|
self.select_vms_widget.available_list.addItem(vmname)
|
||||||
|
except QubesException as ex:
|
||||||
|
QMessageBox.warning (None, "Restore error!", str(ex))
|
||||||
|
|
||||||
def __init_restore_options__(self):
|
def __init_restore_options__(self):
|
||||||
if not self.restore_options:
|
if not self.restore_options:
|
||||||
|
Loading…
Reference in New Issue
Block a user