diff options
author | ivanmorozov <ivanmorozov@yandex-team.com> | 2023-01-12 17:33:41 +0300 |
---|---|---|
committer | ivanmorozov <ivanmorozov@yandex-team.com> | 2023-01-12 17:33:41 +0300 |
commit | c181db1aa965d992c6978f911921e89871577a89 (patch) | |
tree | 4509240fcc7c79c47c1cecac95efe706d61ee31e | |
parent | 8b76d5a9a4bec961f719c5bb15c68ee149ab9ca6 (diff) | |
download | ydb-c181db1aa965d992c6978f911921e89871577a89.tar.gz |
fix error message providing
-rw-r--r-- | ydb/services/metadata/manager/abstract.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ydb/services/metadata/manager/abstract.h b/ydb/services/metadata/manager/abstract.h index 90b21eb213..ae1bfb3a79 100644 --- a/ydb/services/metadata/manager/abstract.h +++ b/ydb/services/metadata/manager/abstract.h @@ -85,7 +85,7 @@ private: YDB_READONLY_FLAG(Success, false); YDB_ACCESSOR_DEF(TString, ErrorMessage); public: - TObjectOperatorResult(const bool success) + explicit TObjectOperatorResult(const bool success) : SuccessFlag(success) { } @@ -95,6 +95,12 @@ public: , ErrorMessage(errorMessage) { } + + TObjectOperatorResult(const char* errorMessage) + : SuccessFlag(false) + , ErrorMessage(errorMessage) { + + } }; class TColumnInfo { |