Skip to content

Commit

Permalink
firx: RepositoryAlreadyExists add
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezasamimi committed Oct 23, 2024
1 parent 3337710 commit a4994f5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
})
Expand Down

0 comments on commit a4994f5

Please sign in to comment.