diff options
author | Vasily Gerasimov <[email protected]> | 2022-02-22 00:26:16 +0300 |
---|---|---|
committer | Vasily Gerasimov <[email protected]> | 2022-02-22 00:26:16 +0300 |
commit | a0a6ef02503671aa106004c5c59fe75158288f9a (patch) | |
tree | 090db24c5e17f088850e2cce00525dba76dfbb32 | |
parent | 373e00550f38138adbb0a26791fbbd4406434952 (diff) |
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.cpp | 2 |
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 0be3eb10e7a..018714a7497 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) { |