Skip to content

Conversation

@orblivion
Copy link
Contributor

Looks like there's no test suite on this one?

@JohnMcLear
Copy link
Member

Haha good spot!!

@JohnMcLear
Copy link
Member

Should have test coverage. Will need to add some at some point. Not sure how we would fake other rtc streams tho...

@JohnMcLear JohnMcLear merged commit 3162cc2 into ether:master Apr 8, 2020
.catch(function(err) {
var reason = "Sorry, we couldnt't find a suitable camera on your device. If you have a camera, make sure it set up correctly and refresh this website to retry.";
if(location.protocol !== "https:") reason = "Sorry, you need to install SSL certificates for your Etherpad instance to use WebRTC";
if(err.name !== "NotFoundError") reason = "Sorry, you need to install SSL certificates for your Etherpad instance to use WebRTC";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized this has more effectse. Beforehand, any error that was neither NotAllowedError nor NotFoundError would default to the "not found" error message. Now it'll default to the "not allowed" error message.

But, both of those are wrong. Should I just add a generic "unknown error" message?

@orblivion orblivion deleted the dev-mode-fixes branch April 8, 2020 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants