From 4b88cdbd9031949b6819af0d38c0f9185ef62837 Mon Sep 17 00:00:00 2001 From: Glax Date: Wed, 30 Oct 2024 20:31:16 +0100 Subject: [PATCH] When updating Jobfiles, dont write a new file if we werent able to successfully delete the old one --- Tranga/Jobs/JobBoss.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index bd33c62..7377c38 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -203,7 +203,8 @@ public class JobBoss : GlobalBase } catch (Exception e) { - Log(e.ToString()); + Log($"Error deleting {oldFilePath} job {job.id}\n{e}"); + return; //Don't export a new file when we haven't actually deleted the old one } }