Merge "Explicitly show the destination filename for a bugreport." am: ca876d8037 am: 3ff439fe77 am: 8f5ed79e34
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1343880 Change-Id: I8ac3150a54b416667e4ce8ed47708f28e0407637
This commit is contained in:
commit
4d98c28e36
1 changed files with 3 additions and 1 deletions
|
|
@ -104,7 +104,9 @@ class BugreportStandardStreamsCallback : public StandardStreamsCallbackInterface
|
|||
SetLineMessage("pulling");
|
||||
status_ =
|
||||
br_->DoSyncPull(srcs, destination.c_str(), false, line_message_.c_str()) ? 0 : 1;
|
||||
if (status_ != 0) {
|
||||
if (status_ == 0) {
|
||||
printf("Bug report copied to %s\n", destination.c_str());
|
||||
} else {
|
||||
fprintf(stderr,
|
||||
"Bug report finished but could not be copied to '%s'.\n"
|
||||
"Try to run 'adb pull %s <directory>'\n"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue