diff options
author | Tom Marshall <tdm@cyngn.com> | 2016-01-29 15:39:49 -0800 |
---|---|---|
committer | Tom Marshall <tdm@cyngn.com> | 2016-02-04 13:22:55 -0800 |
commit | 864493c7697818028869ea457e649649af54656b (patch) | |
tree | 11fd252d6700b2c24c21f74669034e8eb6485cb2 /roots.cpp | |
parent | da584a2e6df7045c080aceca9d3a8a3fee0081db (diff) | |
download | bootable_recovery-864493c7697818028869ea457e649649af54656b.zip bootable_recovery-864493c7697818028869ea457e649649af54656b.tar.gz bootable_recovery-864493c7697818028869ea457e649649af54656b.tar.bz2 |
recovery: Offer to format if data wipe fails
Change-Id: I76587c4fa234c5aab52882492da295e70029f522
Diffstat (limited to 'roots.cpp')
-rw-r--r-- | roots.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) { |