From 2117b4812b6fcd5d1d04e713ebb320b4d2b36ad0 Mon Sep 17 00:00:00 2001 From: Erwin Date: Sun, 9 Jun 2024 19:37:33 +0200 Subject: [PATCH] Minor spelling fix in the RedirectsService exceptions (#272) Co-authored-by: Erwin Damsma --- .../Services/RedirectsService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SeoToolkit.Umbraco.Redirects.Core/Services/RedirectsService.cs b/src/SeoToolkit.Umbraco.Redirects.Core/Services/RedirectsService.cs index fc631eb6..076f72d4 100644 --- a/src/SeoToolkit.Umbraco.Redirects.Core/Services/RedirectsService.cs +++ b/src/SeoToolkit.Umbraco.Redirects.Core/Services/RedirectsService.cs @@ -60,13 +60,13 @@ public void Save(Redirect redirect) if (existingRedirects.Length > 0) { if (existingRedirects.Any(it => it.Domain is null && string.IsNullOrWhiteSpace(it.CustomDomain))) - throw new ArgumentException($"An redirect already exists for {oldUrl}"); + throw new ArgumentException($"A redirect already exists for {oldUrl}"); if (redirect.Domain != null && existingRedirects.Any(it => it.Domain?.Id == redirect.Domain.Id)) - throw new ArgumentException($"An redirect already exists for {oldUrl}"); + throw new ArgumentException($"A redirect already exists for {oldUrl}"); if (!string.IsNullOrWhiteSpace(redirect.CustomDomain) && existingRedirects.Any(it => !string.IsNullOrWhiteSpace(it.CustomDomain) && it.CustomDomain.Equals(redirect.CustomDomain))) - throw new ArgumentException($"An redirect already exists for {oldUrl}"); + throw new ArgumentException($"A redirect already exists for {oldUrl}"); } redirect.OldUrl = oldUrl;