diff --git a/src/server/common.cc b/src/server/common.cc index 2f56a82d5..09dc4c1d6 100644 --- a/src/server/common.cc +++ b/src/server/common.cc @@ -363,16 +363,7 @@ GenericError ExecutionState::GetError() const { } void ExecutionState::ReportCancelError() { - std::string cancel_reason = "ExecutionState cancelled"; - - // Add additional information about the reason for cancellation, if possible - // Possible to extract from system errors or context - std::error_code sys_err = std::error_code(errno, std::system_category()); - if (sys_err && sys_err != std::errc::operation_canceled) { - absl::StrAppend(&cancel_reason, " due to system error: ", sys_err.message()); - } - - ReportError(std::make_error_code(errc::operation_canceled), cancel_reason); + ReportError(std::make_error_code(errc::operation_canceled), "ExecutionState cancelled"); } void ExecutionState::Reset(ErrHandler handler) {