w3c / webrtc-identity

Specification of the Identity framework for WebRTC
https://w3c.github.io/webrtc-identity/
Other
4 stars 12 forks source link

Error for when peer identity is wrong #21

Open dontcallmedom opened 7 years ago

dontcallmedom commented 7 years ago

Initially raised by @fluffy at https://github.com/w3c/webrtc-pc/issues/1256

If the remote identity does not match the target peer identity, I don't think the InvalidModificaitonError is the right error to return because there are too many other things that could cause the same error and would be handled differently. I would suggest created a new error for this.