From 62718eb5237a9f60f05aaf10029c6336c3f8d53f Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Sat, 10 May 2014 12:01:33 +0100 Subject: install: Ditch the generic error Try to replace it with something more meaningful Change-Id: Ifc59ccdc1cf2a71245428ab9ff6495dc6c51d8b3 --- install.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- cgit v1.1