From e36ec8e5debe108131b48505b5910718ed11fe5f Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Thu, 11 Jul 2019 07:52:04 -0500 Subject: [PATCH] change ex type --- src/FilterLists.Agent/Infrastructure/UrlRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilterLists.Agent/Infrastructure/UrlRepository.cs b/src/FilterLists.Agent/Infrastructure/UrlRepository.cs index f6afeff49..2756691c1 100644 --- a/src/FilterLists.Agent/Infrastructure/UrlRepository.cs +++ b/src/FilterLists.Agent/Infrastructure/UrlRepository.cs @@ -52,7 +52,7 @@ public UrlRepository(IRestClient apiClient, HttpClient httpClient, public async Task> GetAllAsync(CancellationToken cancellationToken) { if (!EntityUrlsEndpoints.ContainsKey(typeof(TModel).Name)) - throw new InvalidEnumArgumentException(_localizer["The type of TModel is not valid."]); + throw new ArgumentException(_localizer["The type of TModel is not valid."]); var request = new RestRequest($"{EntityUrlsEndpoints[typeof(TModel).Name]}/seed"); var response = await _apiClient.ExecuteTaskAsync>(request, cancellationToken); if (response.ErrorException != null)