Properly report an error for download action write errors
DownloadAction only terminates the processing pipeline if
DeltaPerformer::Write() return false AND an error code is set. If false
is returned but no error code set, download action stops downloading
more data w/o telling the caller that the update has stopped. To caller
will simply sit their and wait indefinitely for a status update.
Test: th
Bug: 284352074
Change-Id: I20516f7bccf5ea348990100ed557d050fbf8b670
diff --git a/payload_consumer/filesystem_verifier_action.cc b/payload_consumer/filesystem_verifier_action.cc
index abfae72..5342e6f 100644
--- a/payload_consumer/filesystem_verifier_action.cc
+++ b/payload_consumer/filesystem_verifier_action.cc
@@ -96,10 +96,10 @@
install_plan_ = GetInputObject();
if (install_plan_.partitions.empty()) {
- LOG(INFO) << "No partitions to verify.";
+ LOG(ERROR) << "No partitions to verify.";
if (HasOutputPipe())
SetOutputObject(install_plan_);
- abort_action_completer.set_code(ErrorCode::kSuccess);
+ abort_action_completer.set_code(ErrorCode::kFilesystemVerifierError);
return;
}
// partition_weight_[i] = total size of partitions before index i.