Fixed missing proper SearchdomainNotFoundException in DatabaseHelper

This commit is contained in:
2025-12-13 17:24:12 +01:00
parent 53a8d073bd
commit 2f4a506077

View File

@@ -1,5 +1,6 @@
using System.Data.Common; using System.Data.Common;
using System.Text; using System.Text;
using Server.Exceptions;
namespace Server.Helper; namespace Server.Helper;
@@ -101,7 +102,7 @@ public class DatabaseHelper(ILogger<DatabaseHelper> logger)
else else
{ {
_logger.LogError("Unable to retrieve searchdomain ID for {searchdomain}", [searchdomain]); _logger.LogError("Unable to retrieve searchdomain ID for {searchdomain}", [searchdomain]);
throw new Exception($"Unable to retrieve searchdomain ID for {searchdomain}"); throw new SearchdomainNotFoundException(searchdomain);
} }
} }
} }