diff --git a/src/Server/SearchdomainManager.cs b/src/Server/SearchdomainManager.cs index 9b87b8a..855cac7 100644 --- a/src/Server/SearchdomainManager.cs +++ b/src/Server/SearchdomainManager.cs @@ -53,7 +53,7 @@ public class SearchdomainManager catch (MySqlException) { _logger.LogError("Unable to find the searchdomain {searchdomain}", searchdomain); - throw new Exception($"Unable to find the searchdomain {searchdomain}"); + throw new SearchdomainNotFoundException(searchdomain); } catch (Exception ex) {