aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authortholenst <tholenst@google.com>2023-03-08 07:26:22 -0800
committerCopybara-Service <copybara-worker@google.com>2023-03-08 07:27:30 -0800
commitfed2e5053061dab0e071f06bf203c1286a5991b6 (patch)
tree8b16ac851c01f7ccf3662f346d3c801d2a32b2bf /tools
parentf4c92061299dd621e48fb09005a777b91ab7d58d (diff)
downloadtink-fed2e5053061dab0e071f06bf203c1286a5991b6.tar.gz
Migrate InitAws to absl::Status error codes.
PiperOrigin-RevId: 515030983
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/cc/cli_util.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/testing/cc/cli_util.cc b/tools/testing/cc/cli_util.cc
index aed2c97ba..8d24baa68 100644
--- a/tools/testing/cc/cli_util.cc
+++ b/tools/testing/cc/cli_util.cc
@@ -220,16 +220,14 @@ Status CliUtil::InitAws() {
"/tools/testdata/aws/credentials.ini";
auto client_result = AwsKmsClient::New("", creds_file);
if (!client_result.ok()) {
- return Status(crypto::tink::util::error::INTERNAL,
- "Failed to connect to AWS client.");
+ return Status(absl::StatusCode::kInternal, "Failed to connect to AWS client.");
}
auto client_add_result =
KmsClients::Add(std::move(client_result.value()));
if (!client_add_result.ok()) {
- return Status(crypto::tink::util::error::INTERNAL,
- "Failed to add KMS client.");
+ return Status(absl::StatusCode::kInternal, "Failed to add KMS client.");
}
- return Status::OK;
+ return util::OkStatus();
}
// static