From 8f0a6d13c61da3e2019ea7fdc6b3684a7587266f Mon Sep 17 00:00:00 2001 From: abraunegg Date: Sun, 7 Jan 2024 20:18:28 +1100 Subject: [PATCH] Update sync.d * Catch an error when the file being uploaded disappears during session upload --- src/sync.d | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sync.d b/src/sync.d index f9c5b7ac..01e66b3d 100644 --- a/src/sync.d +++ b/src/sync.d @@ -5259,6 +5259,12 @@ class SyncEngine { displayFileSystemErrorMessage(e.msg, getFunctionName!({})); return uploadResponse; } + } catch (ErrnoException e) { + // There was a file system error + // display the error message + displayFileSystemErrorMessage(e.msg, getFunctionName!({})); + uploadResponse = null; + return uploadResponse; } // was the fragment uploaded without issue?