diff options
author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2014-05-10 12:01:33 +0100 |
---|---|---|
committer | Tom Marshall <tdm@cyngn.com> | 2015-11-25 15:35:47 -0800 |
commit | 62718eb5237a9f60f05aaf10029c6336c3f8d53f (patch) | |
tree | bac4968fcaa393749e7c8689a0d0dfe1799388d4 | |
parent | 5cd84a079f35f08e12cddf6a75282486e93ad48f (diff) | |
download | bootable_recovery-62718eb5237a9f60f05aaf10029c6336c3f8d53f.zip bootable_recovery-62718eb5237a9f60f05aaf10029c6336c3f8d53f.tar.gz bootable_recovery-62718eb5237a9f60f05aaf10029c6336c3f8d53f.tar.bz2 |
install: Ditch the generic error
Try to replace it with something more meaningful
Change-Id: Ifc59ccdc1cf2a71245428ab9ff6495dc6c51d8b3
-rw-r--r-- | install.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/install.cpp b/install.cpp index 7afcff6..709b945 100644 --- a/install.cpp +++ b/install.cpp @@ -195,7 +195,12 @@ try_update_binary(const char* path, ZipArchive* zip, bool* wipe_cache) { int status; waitpid(pid, &status, 0); if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { - LOGE("Error in %s\n(Status %d)\n", path, WEXITSTATUS(status)); + if (WEXITSTATUS(status) != 7) { + LOGE("Installation error in %s\n(Status %d)\n", path, WEXITSTATUS(status)); + } else { + LOGE("Failed to install %s\n", path); + LOGE("Please take note of all the above lines for reports\n"); + } return INSTALL_ERROR; } |