Skip to content

Commit

Permalink
[Orc] Fix error handling (#95253)
Browse files Browse the repository at this point in the history
I believe we should return after the SDR for the error case, instead of
invoking it a second time with Error::success().
  • Loading branch information
nikic authored Jun 13, 2024
1 parent 22ff7c5 commit 092dbfa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,10 @@ class WrapperFunction<SPSRetTagT(SPSTagTs...)> {

SPSInputBuffer IB(R.data(), R.size());
if (auto Err = detail::ResultDeserializer<SPSRetTagT, RetT>::deserialize(
RetVal, R.data(), R.size()))
RetVal, R.data(), R.size())) {
SDR(std::move(Err), std::move(RetVal));
return;
}

SDR(Error::success(), std::move(RetVal));
};
Expand Down

0 comments on commit 092dbfa

Please sign in to comment.