Skip to content

Commit 79397ca

Browse files
committed
Fixed ampty issues from
1 parent d0920bc commit 79397ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ydb/core/base/path.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ TString::const_iterator PathPartBrokenAt(const TString &part, const TStringBuf e
221221
bool CheckDbPath(const TString &path, const TString &domain, TString &error) {
222222
auto parts = SplitPath(path);
223223

224-
if (parts.empty()) {
224+
if (parts.size() < 2) {
225225
error = "Database path cannot be empty or root";
226226
return false;
227227
}

ydb/core/testlib/test_client.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2768,7 +2768,7 @@ namespace Tests {
27682768
if (result.operation().status() != Ydb::StatusIds::SUCCESS) {
27692769
NYql::TIssues issues;
27702770
NYql::IssuesFromMessage(result.operation().issues(), issues);
2771-
ythrow yexception() << "Failed to create tenant " << path << ", " << result.operation().status() << ", reason:\n" << issues.ToString();
2771+
ythrow yexception() << "Failed to create tenant " << path << ", " << result.operation().status() << ", reason:\n" << result.DebugString();
27722772
}
27732773

27742774
// Run new tenant

0 commit comments

Comments
 (0)