diff options
author | Ilnaz Nizametdinov <i.nizametdinov@gmail.com> | 2022-03-16 13:30:02 +0300 |
---|---|---|
committer | Ilnaz Nizametdinov <i.nizametdinov@gmail.com> | 2022-03-16 13:30:02 +0300 |
commit | 3af0e2692ba281186cf54a397141a4b578793470 (patch) | |
tree | ee4a8fdd5f0705caa15df7f4a5390ec690da6d23 | |
parent | ae686a55ca68128bcd0a99823796b5c8b0bb38c7 (diff) | |
download | ydb-3af0e2692ba281186cf54a397141a4b578793470.tar.gz |
Specify path to failed item YDB-1562
ref:329d02d03bd89aa6b8681a4db6f54569bb8f9c2d
-rw-r--r-- | ydb/core/tx/schemeshard/schemeshard_import__create.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ydb/core/tx/schemeshard/schemeshard_import__create.cpp b/ydb/core/tx/schemeshard/schemeshard_import__create.cpp index 947870d51bc..b1469403f7e 100644 --- a/ydb/core/tx/schemeshard/schemeshard_import__create.cpp +++ b/ydb/core/tx/schemeshard/schemeshard_import__create.cpp @@ -100,11 +100,7 @@ struct TSchemeShard::TImport::TTxCreate: public TSchemeShard::TXxport::TTxBase { TString explain; if (!FillItems(importInfo, settings, explain)) { - return Reply( - std::move(response), - Ydb::StatusIds::BAD_REQUEST, - TStringBuilder() << "Failed item check: " << explain - ); + return Reply(std::move(response), Ydb::StatusIds::BAD_REQUEST, explain); } } break; @@ -201,6 +197,7 @@ private: } if (!checks) { + explain = TStringBuilder() << "Failed item check for path " << item.destination_path(); checks.GetStatus(&explain); return false; } |