aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-11-27 09:03:08 +0100
committerPapoteur <papoteur@mageia.org>2020-11-27 09:06:29 +0100
commit17a807839cf1290f0a5c7a8ac5990850c5d8e2d3 (patch)
treeb3a399f533379de2f716b724f3133d5aa0bd184f /backend
parent9dd22baebdf1d8e01707bb23491ad7d6da54f1d5 (diff)
downloadisodumper-17a807839cf1290f0a5c7a8ac5990850c5d8e2d3.tar
isodumper-17a807839cf1290f0a5c7a8ac5990850c5d8e2d3.tar.gz
isodumper-17a807839cf1290f0a5c7a8ac5990850c5d8e2d3.tar.bz2
isodumper-17a807839cf1290f0a5c7a8ac5990850c5d8e2d3.tar.xz
isodumper-17a807839cf1290f0a5c7a8ac5990850c5d8e2d3.zip
Add debug option, --debug and write in .isodumper/isodumper2.log
Diffstat (limited to 'backend')
-rwxr-xr-xbackend/raw_write.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/backend/raw_write.py b/backend/raw_write.py
index 0ea3bcc..b90fdd6 100755
--- a/backend/raw_write.py
+++ b/backend/raw_write.py
@@ -245,8 +245,9 @@ class Dumper(object):
working= False
if rc != 0:
self.return_state = False
- self.return_message = _("Error while doing persistent partition: ") + errs.decode('utf-8')
+ self.return_message = _("Error {} while doing persistent partition: {}").format(rc, errs.decode('utf-8')
logging.error(self.return_message)
+ self.finished.set()
return
logging.debug("New partition created")
self._progress = 25
@@ -275,7 +276,7 @@ class Dumper(object):
self.return_message = _("Persistent partition done")
else:
self.return_state = False
- self.return_message = _("Error while doing persistent partition: ") + errs.decode("utf-8")
+ self.return_message = _("Error {} while doing persistent partition: {}").format(rc, errs.decode('utf-8')
self.finished.set()
return
logging.info("Persistent partition done")
@@ -299,7 +300,7 @@ class Dumper(object):
working= False
if rc != 0:
self.return_state = False
- self.return_message = _("Error while doing persistent partition: ") + errs.decode("utf-8")
+ self.return_message = _("Error {} while doing persistent partition: {}").format(rc, errs.decode('utf-8')
logging.error(self.return_message)
self.finished.set()
return
@@ -323,7 +324,7 @@ class Dumper(object):
working= False
if rc != 0:
self.return_state = False
- self.return_message = _("Error while doing persistent partition: ") + errs.decode("utf-8")
+ self.return_message = _("Error {} while doing persistent partition: {}").format(rc, errs.decode('utf-8')
logging.error(self.return_message)
self.finished.set()
return
@@ -347,7 +348,7 @@ class Dumper(object):
working= False
if rc != 0:
self.return_state = False
- self.return_message = _("Error while doing persistent partition: ") + errs.decode("utf-8")
+ self.return_message = _("Error {} while doing persistent partition: {}").format(rc, errs.decode('utf-8')
logging.error(self.return_message)
self.finished.set()
return
@@ -370,7 +371,7 @@ class Dumper(object):
working= False
if rc != 0:
self.return_state = False
- self.return_message = _("Error while doing persistent partition: ") + errs.decode("utf-8")
+ self.return_message = _("Error {} while doing persistent partition: {}").format(rc, errs.decode('utf-8')
logging.error(self.return_message)
else:
self.return_state = True