Skip to content

Commit

Permalink
Text of the DescribePath error has been improved (#8868)
Browse files Browse the repository at this point in the history
  • Loading branch information
dorooleg authored Sep 10, 2024
1 parent f30d481 commit dd142f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ NPq::NConfigurationManager::TAsyncDescribePathResult TPqSession::DescribePath(co
return client->DescribePath(path);
}

return GetYdbPqClient(cluster, database, *config, credentialsProviderFactory).DescribeTopic(path).Apply([cluster, path](const NYdb::NTopic::TAsyncDescribeTopicResult& describeTopicResultFuture) {
return GetYdbPqClient(cluster, database, *config, credentialsProviderFactory).DescribeTopic(path).Apply([cluster, path, database](const NYdb::NTopic::TAsyncDescribeTopicResult& describeTopicResultFuture) {
const NYdb::NTopic::TDescribeTopicResult& describeTopicResult = describeTopicResultFuture.GetValue();
if (!describeTopicResult.IsSuccess()) {
throw yexception() << "Failed to describe topic `" << cluster << "`.`" << path << "`: " << describeTopicResult.GetIssues().ToString();
throw yexception() << "Failed to describe topic `" << cluster << "`.`" << path << "` in the database `" << database << "`: " << describeTopicResult.GetIssues().ToString();
}
NPq::NConfigurationManager::TTopicDescription desc(path);
desc.PartitionsCount = describeTopicResult.GetTopicDescription().GetTotalPartitionsCount();
Expand Down

0 comments on commit dd142f6

Please sign in to comment.