summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/live/ogOperations.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index b7e6801..6904164 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -240,6 +240,9 @@ class OgLiveOperations:
except:
raise ValueError('Error: Incorrect command value')
+ if ogRest.proc.returncode != 0:
+ raise ValueError('Error: Image creation failed')
+
with open('/tmp/image.info') as file_info:
line = file_info.readline().rstrip()