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/common/error_code_utils.cc b/common/error_code_utils.cc
index 645adc5..3fbf0fe 100644
--- a/common/error_code_utils.cc
+++ b/common/error_code_utils.cc
@@ -169,6 +169,8 @@
return "ErrorCode::kUnresolvedHostRecovered";
case ErrorCode::kNotEnoughSpace:
return "ErrorCode::kNotEnoughSpace";
+ case ErrorCode::kDeviceCorrupted:
+ return "ErrorCode::kDeviceCorrupted";
// Don't add a default case to let the compiler warn about newly added
// error codes which should be added here.
}