summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/live/ogOperations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 2ae0104..cee55e5 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -531,7 +531,7 @@ class OgLiveOperations:
else:
err = mkfs(fs, disk, partition)
- if err == -1:
+ if err != 0:
raise OgError(f'Failed to format {part["partition"]} with filesystem {part["filesystem"]}')
ret = subprocess.run(['partprobe', f'/dev/{diskname}'])