Skip to content

Commit

Permalink
Improve ex message
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasohlund committed Mar 8, 2024
1 parent 4084e18 commit 6adaf2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected override void Setup(FeatureConfigurationContext context)
// Without this check, exceptions will be thrown during message processing.
if (clusterType is not ClusterType.ReplicaSet and not ClusterType.Sharded)
{
throw new Exception($"Transactions are only supported on replica sets or sharded clusters. Disable support for transactions by calling 'EndpointConfiguration.UsePersistence<{nameof(MongoPersistence)}>().UseTransactions(false)'.");
throw new Exception($"Cluster type in use is {clusterType}, transactions are only supported on replica sets or sharded clusters. Disable support for transactions by calling 'EndpointConfiguration.UsePersistence<{nameof(MongoPersistence)}>().UseTransactions(false)'.");
}

try
Expand Down

0 comments on commit 6adaf2f

Please sign in to comment.