summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2021-09-01 13:14:08 +0200
committerGitHub <noreply@github.com>2021-09-01 13:14:08 +0200
commitbccdae33d0fb95320cb35c5e2ac2ce7967565e0d (patch)
tree57c1406da61a448dd74cb8f917920ec37c6efed6
parentf7aa9f90aa0975d5b74d66330c5478a6d70dda05 (diff)
parentf442016423cdd21f5955e991e4f8b11a94bdb6d9 (diff)
Merge pull request #6189 from nextcloud/bugfix/5777/improve-error-handling
Handle errors better
-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)