W3C home > Mailing lists > Public > public-webrtc@w3.org > January 2016

Re: Dropping SDP-specific errors

From: Harald Alvestrand <harald@alvestrand.no>
Date: Thu, 28 Jan 2016 23:23:35 +0100
To: public-webrtc@w3.org
Message-ID: <56AA94E7.8060504@alvestrand.no>
Den 28. jan. 2016 23:08, skrev Martin Thomson:
> On 29 January 2016 at 08:58, Adam Roach <abr@mozilla.com> wrote:
>> In fact, we do one better right now (in both spec and implementation): SDP
>> errors in Set{Local,Remote}Description cause the returned promise to be
>> rejected with an InvalidSessionDescriptionError. In Firefox, we set the
>> message field of this error to include details regarding the SDP failure,
>> including (if memory serves) line numbers.
> Yes, I think that is a perfectly fine answer (and yes, we do capture
> line numbers).

we have a general principle that we shouldn't encourage developers to
write code that parses messages, but in practice, I suspect that the
only time developers can make use of the line numbers is during
debugging, and at that time, messages are fine.
Received on Thursday, 28 January 2016 22:24:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:11 UTC