Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-09-01 10:35:07 +0300
committerJoas Schilling <coding@schilljs.com>2021-09-01 10:35:07 +0300
commitf442016423cdd21f5955e991e4f8b11a94bdb6d9 (patch)
tree57c1406da61a448dd74cb8f917920ec37c6efed6 /src/utils/signaling.js
parentf7aa9f90aa0975d5b74d66330c5478a6d70dda05 (diff)
Handle errors better
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r--src/utils/signaling.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/signaling.js b/src/utils/signaling.js
index bc6a46beb..4db8c2a23 100644
--- a/src/utils/signaling.js
+++ b/src/utils/signaling.js
@@ -720,6 +720,13 @@ Signaling.Standalone.prototype.connect = function() {
message.from = data.control.sender.sessionid
this._trigger('message', [message])
break
+ case 'error':
+ if (data.error.code === 'processing_failed') {
+ console.error('An error occurred processing the signaling message, please ask your server administrator to check the log file')
+ } else {
+ console.error('Ignore unknown error', data)
+ }
+ break
default:
if (!id) {
console.error('Ignore unknown event', data)