aboutsummaryrefslogtreecommitdiffstats
path: root/roots.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'roots.cpp')
-rw-r--r--roots.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/roots.cpp b/roots.cpp
index 4bdf192..64c12a3 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -458,7 +458,10 @@ int format_volume(const char* volume, bool force) {
return rc;
}
- LOGE("format_volume failed to mount /data, formatting instead\n");
+ else {
+ LOGE("format_volume failed to mount /data\n");
+ return -1;
+ }
}
if (ensure_path_unmounted(volume) != 0) {