Report errors creating peer connection in AppRTC Demo Android.

Right now if an exception is thrown, it doesn't seem to be logged
anywhere. This CL makes it show a pop-up with the error message.
This should save time debugging issues.

Review-Url: https://codereview.webrtc.org/2049933004
Cr-Commit-Position: refs/heads/master@{#13120}
This commit is contained in:
sakal 2016-06-14 01:08:17 -07:00 committed by Commit bot
parent e9fc75ee72
commit 54f5a26421

View File

@ -286,8 +286,13 @@ public class PeerConnectionClient {
executor.execute(new Runnable() {
@Override
public void run() {
createMediaConstraintsInternal();
createPeerConnectionInternal(renderEGLContext);
try {
createMediaConstraintsInternal();
createPeerConnectionInternal(renderEGLContext);
} catch (Exception e) {
reportError("Failed to create peer connection: " + e.getMessage());
throw e;
}
}
});
}