Skip to content

Commit d55a393

Browse files
authored
Text of the DescribePath error has been improved (#8868) (#8997)
1 parent 2eda3f8 commit d55a393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/library/yql/providers/pq/gateway/native/yql_pq_session.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ NPq::NConfigurationManager::TAsyncDescribePathResult TPqSession::DescribePath(co
8585
return client->DescribePath(path);
8686
}
8787

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

0 commit comments

Comments
 (0)