summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/error/error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/yt/error/error.cpp')
-rw-r--r--library/cpp/yt/error/error.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/cpp/yt/error/error.cpp b/library/cpp/yt/error/error.cpp
index f097697cd6a..ea71a07feed 100644
--- a/library/cpp/yt/error/error.cpp
+++ b/library/cpp/yt/error/error.cpp
@@ -275,6 +275,7 @@ TError::TErrorOr(const std::exception& ex)
*this = errorEx->Error();
} else {
*this = TError(NYT::EErrorCode::Generic, TRuntimeFormat{ex.what()});
+ *this <<= TErrorAttribute("exception_type", TypeName(ex));
}
YT_VERIFY(!IsOK());
Enrich();