diff --git a/pc/sdp_offer_answer.cc b/pc/sdp_offer_answer.cc index 1ed5c80c29..4a77b7546c 100644 --- a/pc/sdp_offer_answer.cc +++ b/pc/sdp_offer_answer.cc @@ -2364,7 +2364,7 @@ void SdpOfferAnswerHandler::DoSetLocalDescription( cricket::CS_LOCAL, desc->GetType(), error); RTC_LOG(LS_ERROR) << error_message; observer->OnSetLocalDescriptionComplete( - RTCError(RTCErrorType::INTERNAL_ERROR, std::move(error_message))); + RTCError(error.type(), std::move(error_message))); return; }