diff options
author | tholenst <tholenst@google.com> | 2023-03-08 07:26:22 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-03-08 07:27:30 -0800 |
commit | fed2e5053061dab0e071f06bf203c1286a5991b6 (patch) | |
tree | 8b16ac851c01f7ccf3662f346d3c801d2a32b2bf /tools | |
parent | f4c92061299dd621e48fb09005a777b91ab7d58d (diff) | |
download | tink-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.cc | 8 |
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 |