Enhanced topic already exists condition

pull/7323/head
liangshiwei 5 years ago
parent 9bccc435c6
commit e9504c58ca

@ -86,7 +86,7 @@ namespace Volo.Abp.Kafka
}
catch (CreateTopicsException e)
{
if (!e.Error.Reason.Contains($"Topic '{TopicName}' already exists"))
if(e.Results.First().Error.Code != ErrorCode.TopicAlreadyExists)
{
throw;
}

Loading…
Cancel
Save