From 41a637f71204f198ad25d01f0d1fa4fe07dce22b Mon Sep 17 00:00:00 2001 From: cooolbros Date: Thu, 15 Feb 2024 12:57:56 +1100 Subject: [PATCH] Fix error message for 1 error --- src/HUDMerger/Models/HUD.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HUDMerger/Models/HUD.cs b/src/HUDMerger/Models/HUD.cs index 517c8d5..3de6777 100644 --- a/src/HUDMerger/Models/HUD.cs +++ b/src/HUDMerger/Models/HUD.cs @@ -168,7 +168,7 @@ public static void Merge(HUD source, HUD target, HUDPanel[] panels) if (exceptions.Count != 0) { throw new Exception(string.Join("\r\n", [ - $"{exceptions.Count} error{(exceptions.Count != 1 ? "s" : "")} were encountered while trying to merge:", + $"{exceptions.Count} error{(exceptions.Count != 1 ? "s" : "")} {(exceptions.Count != 1 ? "were" : "was")} encountered while trying to merge:", "", ..exceptions .OrderBy((e) => e is FileException fileException ? (fileException.HUD == source ? 0 : 1) : 0)