From 004893d8dea58d817ba9bde36e12dc19842e5748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 10 Jan 2014 03:40:11 +0100 Subject: [PATCH] backups: enable back error reporting The final error message wasn't shown (only the fact that backup failed). --- qubesmanager/restore.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qubesmanager/restore.py b/qubesmanager/restore.py index 1536711..cfb7606 100644 --- a/qubesmanager/restore.py +++ b/qubesmanager/restore.py @@ -197,7 +197,7 @@ class RestoreVMsWindow(Ui_Restore, QWizard): error_callback=self.restore_error_output, progress_callback=self.update_progress_bar) except Exception as ex: - print "Exception:",ex + print "Exception:", ex err_msg.append(str(ex)) self.qvm_collection.unlock_db() @@ -251,8 +251,8 @@ class RestoreVMsWindow(Ui_Restore, QWizard): except Empty: pass - #if not self.thread_monitor.success: - #QMessageBox.warning (None, "Backup error!", "ERROR: {1}".format(self.vm.name, self.thread_monitor.error_msg)) + if not self.thread_monitor.success: + QMessageBox.warning (None, "Backup error!", "ERROR: {1}".format(self.vm.name, self.thread_monitor.error_msg)) if self.dev_mount_path != None: umount_device(self.dev_mount_path)