From be7cde4e6e8cfc3b036cb30dd5a4ed4199f7bab6 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Thu, 8 Feb 2018 21:42:05 +0100 Subject: [PATCH] Fixed the problem where the UI reports a warning but "got 0 warning(s)" --- Duplicati/Server/Runner.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Duplicati/Server/Runner.cs b/Duplicati/Server/Runner.cs index 45fc863c7..8800670fe 100644 --- a/Duplicati/Server/Runner.cs +++ b/Duplicati/Server/Runner.cs @@ -747,7 +747,10 @@ namespace Duplicati.Server "Warning" : string.Format("Warning while running {0}", backup.Name), r.FilesWithError > 0 ? string.Format("Errors affected {0} file(s) ", r.FilesWithError) : - string.Format("Got {0} warning(s) ", r.Warnings.Count()) + (r.Errors.Any() ? + string.Format("Got {0} error(s)", r.Errors.Count()) : + string.Format("Got {0} warning(s)", r.Warnings.Count()) + ) , null, backup.ID,