From 2abb52b506ca3952f6e20f9c25f4ced4a323f92d Mon Sep 17 00:00:00 2001 From: aoiasd Date: Tue, 10 Dec 2024 11:38:54 +0800 Subject: [PATCH] return exception type name when segcore return unkonwn exception Signed-off-by: aoiasd --- internal/core/src/futures/Future.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/core/src/futures/Future.h b/internal/core/src/futures/Future.h index 60eb804e96b85..80a5a3a0ff35d 100644 --- a/internal/core/src/futures/Future.h +++ b/internal/core/src/futures/Future.h @@ -16,6 +16,7 @@ #include #include #include +#include #include "future_c_types.h" #include "LeakyResult.h" #include "Ready.h" @@ -215,7 +216,7 @@ class Future : public IFuture { .thenError(folly::tag_t{}, [ready = ready_](const std::exception& e) { ready->setValue(LeakyResult( - milvus::UnexpectedError, e.what())); + milvus::UnexpectedError, fmt::format("{} :{}", typeid(e).name(), e.what()))); }); }