Skip to content

Commit

Permalink
fix: RepositoryAlreadyExists add
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezasamimi committed Oct 23, 2024
1 parent a4994f5 commit 4978446
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ 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 4978446

Please sign in to comment.