summaryrefslogtreecommitdiff
path: root/common/error_code_utils.cc
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2019-12-13 11:50:43 -0800
committerYifan Hong <elsk@google.com>2019-12-13 22:37:45 +0000
commitf6c805a7dd67cf169fa63762de1a922b19c9f602 (patch)
tree423f26496bf4f0b812afd54289d8c54a30f2e570 /common/error_code_utils.cc
parent173e619eaec17f9703b0e55d1cfdd039311f809a (diff)
Sync with CrOS error codes.
Add to ErrorCode and metrics::DownloadErrorCode: - kInternalLibCurlError - kUnresolvedHostError - kUnresolvedHostRecovered Test: builds Change-Id: Ibe11c02137860aed583b00b7e05b089ef84edb03
Diffstat (limited to 'common/error_code_utils.cc')
-rw-r--r--common/error_code_utils.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/error_code_utils.cc b/common/error_code_utils.cc
index b0bbbd4a..5bcbaa40 100644
--- a/common/error_code_utils.cc
+++ b/common/error_code_utils.cc
@@ -161,6 +161,12 @@ string ErrorCodeToString(ErrorCode code) {
return "ErrorCode::kFirstActiveOmahaPingSentPersistenceError";
case ErrorCode::kVerityCalculationError:
return "ErrorCode::kVerityCalculationError";
+ case ErrorCode::kInternalLibCurlError:
+ return "ErrorCode::kInternalLibCurlError";
+ case ErrorCode::kUnresolvedHostError:
+ return "ErrorCode::kUnresolvedHostError";
+ case ErrorCode::kUnresolvedHostRecovered:
+ return "ErrorCode::kUnresolvedHostRecovered";
// Don't add a default case to let the compiler warn about newly added
// error codes which should be added here.
}