Skip to content

Commit

Permalink
return exception type name when segcore return unkonwn exception
Browse files Browse the repository at this point in the history
Signed-off-by: aoiasd <[email protected]>
  • Loading branch information
aoiasd committed Dec 13, 2024
1 parent c1f9158 commit 2abb52b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/core/src/futures/Future.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <folly/CancellationToken.h>
#include <folly/futures/Future.h>
#include <folly/futures/SharedPromise.h>
#include <charconv>
#include "future_c_types.h"
#include "LeakyResult.h"
#include "Ready.h"
Expand Down Expand Up @@ -215,7 +216,7 @@ class Future : public IFuture {
.thenError(folly::tag_t<std::exception>{},
[ready = ready_](const std::exception& e) {
ready->setValue(LeakyResult<R>(
milvus::UnexpectedError, e.what()));
milvus::UnexpectedError, fmt::format("{} :{}", typeid(e).name(), e.what())));
});
}

Expand Down

0 comments on commit 2abb52b

Please sign in to comment.