Add ErrorCode::kDeviceCorrupted.
This error code indicates the device is corrupted in a way
that it can no longer receive any future updates. Specifically, if a
device encounters a merge error, there is no way we can recover that
device.
Test: pass
Bug: 138808328
Change-Id: Idbd9d1bc5bc02bbba157f17f31b2c5ace839243c
diff --git a/payload_state.cc b/payload_state.cc
index 23ff3e2..3ba6391 100644
--- a/payload_state.cc
+++ b/payload_state.cc
@@ -369,6 +369,7 @@
case ErrorCode::kUnresolvedHostError:
case ErrorCode::kUnresolvedHostRecovered:
case ErrorCode::kNotEnoughSpace:
+ case ErrorCode::kDeviceCorrupted:
LOG(INFO) << "Not incrementing URL index or failure count for this error";
break;