Sync with CrOS error codes.
Add to ErrorCode and metrics::DownloadErrorCode:
- kInternalLibCurlError
- kUnresolvedHostError
- kUnresolvedHostRecovered
Test: builds
Change-Id: Ibe11c02137860aed583b00b7e05b089ef84edb03
diff --git a/metrics_constants.h b/metrics_constants.h
index eabb8fb..137143a 100644
--- a/metrics_constants.h
+++ b/metrics_constants.h
@@ -60,6 +60,15 @@
// above block and before the kInputMalformed field. This
// is to ensure that error codes are not reordered.
+ // This error is reported when libcurl returns CURLE_COULDNT_RESOLVE_HOST and
+ // calling res_init() can recover.
+ kUnresolvedHostRecovered = 97,
+ // This error is reported when libcurl returns CURLE_COULDNT_RESOLVE_HOST.
+ kUnresolvedHostError = 98,
+ // This error is reported when libcurl has an internal error that
+ // update_engine can't recover from.
+ kInternalLibCurlError = 99,
+
// This error code is used to convey that malformed input was given
// to the utils::GetDownloadErrorCode() function. This should never
// happen but if it does it's because of an internal update_engine