summaryrefslogtreecommitdiff
path: root/common/error_code_utils.cc
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2019-12-17 16:38:21 -0800
committerYifan Hong <elsk@google.com>2020-01-02 20:46:44 +0000
commit7727990e0d465f1c8e18283023ec382b1012b2be (patch)
treeffc9cf263d9dd1c6850bae9c149a4b3f01dbc2f3 /common/error_code_utils.cc
parent6f7e29f0c91f733ee515b82baea4e85a67440648 (diff)
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
Diffstat (limited to 'common/error_code_utils.cc')
-rw-r--r--common/error_code_utils.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/error_code_utils.cc b/common/error_code_utils.cc
index 645adc59..3fbf0feb 100644
--- a/common/error_code_utils.cc
+++ b/common/error_code_utils.cc
@@ -169,6 +169,8 @@ string ErrorCodeToString(ErrorCode code) {
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.
}