Merge "Improve "adb install"\'s error message slightly."
am: d361582dc0
* commit 'd361582dc04063ca93d9939d0315373b10b9200f':
Improve "adb install"'s error message slightly.
diff --git a/adb/commandline.cpp b/adb/commandline.cpp
index 8575c86..f74da19 100644
--- a/adb/commandline.cpp
+++ b/adb/commandline.cpp
@@ -1860,8 +1860,7 @@
adb_close(remoteFd);
if (strncmp("Success", buf, 7)) {
- fprintf(stderr, "Failed to write %s\n", file);
- fputs(buf, stderr);
+ fprintf(stderr, "Failed to install %s: %s", file, buf);
return 1;
}
fputs(buf, stderr);