diff options
| author | Alex Deymo <deymo@google.com> | 2016-06-15 16:19:29 -0700 |
|---|---|---|
| committer | Alex Deymo <deymo@google.com> | 2016-06-16 18:44:26 +0000 |
| commit | ed9cc18eb7746c7f65a68e15a276472aa2176ab1 (patch) | |
| tree | 8b9e714dec4435620858a6769d7daaf80d5294e2 | |
| parent | d292f2765164ab2bce178d101fd72c0ab868c931 (diff) | |
Print the ErrorCode name when DeltaPerformer fails.
Bug: 29163155
TEST=Failed hash verification error now prints the ErrorCode name.
Change-Id: If7c3c49419124818c86f96ec423947e6ce90e8c0
| -rw-r--r-- | payload_consumer/download_action.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/payload_consumer/download_action.cc b/payload_consumer/download_action.cc index fdbbd72e..084848ee 100644 --- a/payload_consumer/download_action.cc +++ b/payload_consumer/download_action.cc @@ -27,6 +27,7 @@ #include "update_engine/common/action_pipe.h" #include "update_engine/common/boot_control_interface.h" +#include "update_engine/common/error_code_utils.h" #include "update_engine/common/utils.h" #include "update_engine/omaha_request_params.h" #include "update_engine/p2p_manager.h" @@ -270,7 +271,8 @@ void DownloadAction::ReceivedBytes(HttpFetcher* fetcher, length, bytes_received_, install_plan_.payload_size); } if (writer_ && !writer_->Write(bytes, length, &code_)) { - LOG(ERROR) << "Error " << code_ << " in DeltaPerformer's Write method when " + LOG(ERROR) << "Error " << utils::ErrorCodeToString(code_) << " (" << code_ + << ") in DeltaPerformer's Write method when " << "processing the received payload -- Terminating processing"; // Delete p2p file, if applicable. if (!p2p_file_id_.empty()) |
