try to improve kurento listen-only error reporting

This commit is contained in:
Chad Pilkey 2019-06-05 10:50:21 -07:00
parent 854aa8019b
commit 42f18a15fe

View File

@ -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,