From 4bab46f23c42189c7a3b44740320885bfe31bf63 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Mon, 22 Mar 2021 22:00:08 +0100 Subject: Manage case when partition creation failed with reporting (mga#28466) --- lib/isodumper.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/isodumper.py b/lib/isodumper.py index d8387b4..464943f 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -438,7 +438,9 @@ class IsoDumper(object): if iface.state: self.logger(_("Added encrypted persistent partition")) else: + self.logger(_("Adding encrypted persistent partition failed")) self.logger(iface.message) + nowarning = False else: iface.do_persistence(target, "mgalive-persist", "") while not iface.done: @@ -446,7 +448,12 @@ class IsoDumper(object): self.progress.setValue(progress) self.dialog.pollEvent() time.sleep(.5) - self.logger(_("Added persistent partition")) + if iface.state: + self.logger(_("Added persistent partition")) + else: + self.logger(_("Adding persistent partition failed")) + self.logger(iface.message) + nowarning = False # Unmount if partitions are automatically mounted and then eject self.progress.setValue(100) self.dialog.pollEvent() -- cgit v1.2.1