Skip to content

Commit

Permalink
file_sync_client.cpp: include strerror() in adb_read() failures.
Browse files Browse the repository at this point in the history
Bug: http://b/361812738
Change-Id: I40ef6c47731e1f1adb9dd5e8c5a90cb5b7e5ebc1
  • Loading branch information
enh-google committed Sep 4, 2024
1 parent 3a6c4b3 commit 3da3956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/file_sync_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ class SyncConnection {
const ssize_t bytes_left = amount - buf.size();
ssize_t rc = adb_read(fd, buf.end(), bytes_left);
if (rc <= 0) {
Error("failed to read copy response");
Error("failed to read copy response: %s", rc < 0 ? strerror(errno) : "EOF");
return ReadStatus::Failure;
}
buf.resize(buf.size() + rc);
Expand Down

0 comments on commit 3da3956

Please sign in to comment.