aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Gerasimov <UgnineSirdis@gmail.com>2022-02-22 00:26:16 +0300
committerVasily Gerasimov <UgnineSirdis@gmail.com>2022-02-22 00:26:16 +0300
commita0a6ef02503671aa106004c5c59fe75158288f9a (patch)
tree090db24c5e17f088850e2cce00525dba76dfbb32
parent373e00550f38138adbb0a26791fbbd4406434952 (diff)
downloadydb-a0a6ef02503671aa106004c5c59fe75158288f9a.tar.gz
YQ-863 Throw yexception in token accessor credentials provider
Throw yexception ref:c23bf12aa73a314d2a599cb5a6c51d0a0409c001
-rw-r--r--ydb/library/yql/providers/common/token_accessor/client/token_accessor_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/library/yql/providers/common/token_accessor/client/token_accessor_client.cpp b/ydb/library/yql/providers/common/token_accessor/client/token_accessor_client.cpp
index 0be3eb10e7..018714a749 100644
--- a/ydb/library/yql/providers/common/token_accessor/client/token_accessor_client.cpp
+++ b/ydb/library/yql/providers/common/token_accessor/client/token_accessor_client.cpp
@@ -82,7 +82,7 @@ private:
ticket = Ticket;
nextTicketUpdate = NextTicketUpdate;
if (ticket.empty()) {
- throw std::runtime_error(TStringBuilder() << "IAM-token not ready yet. " << LastRequestError);
+ throw yexception() << "IAM-token not ready yet. " << LastRequestError;
}
}
if (TInstant::Now() >= nextTicketUpdate) {