From f616406eb5204a1a96ec0ddf8e6439fe87035a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 12 Aug 2024 11:10:23 +0200 Subject: [PATCH] fix: Emit error if push fails in other unhandled cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/services/SyncService.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/SyncService.js b/src/services/SyncService.js index cb4b4eb4d8..e272480753 100644 --- a/src/services/SyncService.js +++ b/src/services/SyncService.js @@ -199,6 +199,8 @@ class SyncService { this.emit('error', { type: ERROR_TYPE.PUSH_FAILURE, data: {} }) OC.Notification.showTemporary('Changes could not be sent yet') } + } else { + this.emit('error', { type: ERROR_TYPE.PUSH_FAILURE, data: {} }) } throw new Error('Failed to apply steps. Retry!', { cause: err }) })