aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
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