diff --git a/Mohaymen.GiteaClient/Core/DependencyInjection/RefitDependencyInjection.cs b/Mohaymen.GiteaClient/Core/DependencyInjection/RefitDependencyInjection.cs index ff0bf4d..7e4a9ea 100644 --- a/Mohaymen.GiteaClient/Core/DependencyInjection/RefitDependencyInjection.cs +++ b/Mohaymen.GiteaClient/Core/DependencyInjection/RefitDependencyInjection.cs @@ -37,10 +37,7 @@ public static IServiceCollection AddRefitClientTypes(this IServiceCollection ser { return null; } - if (httpResponseMessage.StatusCode == HttpStatusCode.Conflict) - { - throw new RepositoryAlreadyExistsException(await httpResponseMessage.Content.ReadAsStringAsync()); - } + throw new Exception(await httpResponseMessage.Content.ReadAsStringAsync()); } })