Skip to content
Snippets Groups Projects
Commit 0c426d91 authored by harshit aggarwal's avatar harshit aggarwal
Browse files

minor update

parent b003f7e5
No related branches found
No related tags found
1 merge request!20Adding helm charts and Istio config
Pipeline #12353 failed
......@@ -126,6 +126,9 @@ public class SubscriptionRepository implements ISubscriptionRepository {
return input;
}
catch(AppException e) {
if(e.getError().getCode() == 409) {
throw new AppException(409, "Conflict", "A subscriber already exists with the same topic and endpoint combination");
}
try {
cosmosStore.deleteItem(dpsHeaders.getPartitionId(), azureBootstrapConfig.getCosmosDBName(), cosmosContainerConfig.getSubscriptionContainerName(), input.getId(), dpsHeaders.getPartitionId());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment