From 42f18a15fee8450b5de45b9c08e2cb244db7fc58 Mon Sep 17 00:00:00 2001 From: Chad Pilkey Date: Wed, 5 Jun 2019 10:50:21 -0700 Subject: [PATCH] try to improve kurento listen-only error reporting --- .../imports/api/audio/client/bridge/kurento.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 bigbluebutton-html5/imports/api/audio/client/bridge/kurento.js diff --git a/bigbluebutton-html5/imports/api/audio/client/bridge/kurento.js b/bigbluebutton-html5/imports/api/audio/client/bridge/kurento.js old mode 100644 new mode 100755 index aa91ad5c31..95bd3414cf --- a/bigbluebutton-html5/imports/api/audio/client/bridge/kurento.js +++ b/bigbluebutton-html5/imports/api/audio/client/bridge/kurento.js @@ -89,7 +89,10 @@ export default class KurentoAudioBridge extends BaseAudioBridge { }; const onFail = (error) => { - const { reason } = error; + let reason = 'Undefined'; + if (error) { + reason = error.reason || error.id || error; + } this.callback({ status: this.baseCallStates.failed, error: this.baseErrorCodes.CONNECTION_ERROR,