diff options
| author | arkady-e1ppa <[email protected]> | 2024-12-25 10:19:49 +0300 |
|---|---|---|
| committer | arkady-e1ppa <[email protected]> | 2024-12-25 11:15:51 +0300 |
| commit | 47a8704130b3d47dcb4eb806c3eae41292e90eb4 (patch) | |
| tree | 2071f3873a5a8063affe776e4b83866ab997b1a2 /library/cpp/yt/error/error.cpp | |
| parent | 2f83984f3c96794039f6d577c2dc3eea220dbca0 (diff) | |
YT-21233: Issues and tidying up of rXXXXXX
commit_hash:19481c9fbb008aab4f4d676f1a3a242f6e90e90e
Diffstat (limited to 'library/cpp/yt/error/error.cpp')
| -rw-r--r-- | library/cpp/yt/error/error.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/library/cpp/yt/error/error.cpp b/library/cpp/yt/error/error.cpp index bcc265ab2ed..59eea6ce8c6 100644 --- a/library/cpp/yt/error/error.cpp +++ b/library/cpp/yt/error/error.cpp @@ -435,7 +435,7 @@ bool TError::HasAttributes() const noexcept const TErrorAttributes& TError::Attributes() const { if (!Impl_) { - static TErrorAttributes empty = {}; + static TErrorAttributes empty; return empty; } return Impl_->Attributes(); @@ -688,6 +688,12 @@ TError& TError::operator <<= (std::vector<TError>&& innerErrors) & return *this; } +TError& TError::operator <<= (TAnyMergeableDictionaryRef attributes) & +{ + MutableAttributes()->MergeFrom(attributes); + return *this; +} + //////////////////////////////////////////////////////////////////////////////// bool operator == (const TError& lhs, const TError& rhs) |
