Skip to content

Commit 3ee2119

Browse files
committed
Error text if type is not supported
1 parent 1600f49 commit 3ee2119

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Infrastructure/EventStores/EventStoresExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static IServiceCollection AddEventStore<TAggregate>(this IServiceCollecti
2828
services.AddMongoDbEventStore(Configuration);
2929
break;
3030
default:
31-
throw new Exception($"Event store type '{options.EventStoreType}' is not valid");
31+
throw new Exception($"Event store type '{options.EventStoreType}' is not supported");
3232
}
3333

3434
services.AddScoped<IRepository<TAggregate>, Repository<TAggregate>>();

Infrastructure/MessageBrokers/MessageBrokersExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static IServiceCollection AddMessageBroker(this IServiceCollection servic
2323
case "kafka":
2424
return services.AddKafka(Configuration);
2525
default:
26-
throw new Exception($"Message broker type '{options.MessageBrokerType}' is not valid");
26+
throw new Exception($"Message broker type '{options.MessageBrokerType}' is not supported");
2727
}
2828
}
2929

Infrastructure/Outbox/OutboxExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static IServiceCollection AddOutbox(this IServiceCollection services, ICo
2626
services.AddMongoDbOutbox(Configuration);
2727
break;
2828
default:
29-
throw new Exception($"Outbox type '{options.OutboxType}' is not valid");
29+
throw new Exception($"Outbox type '{options.OutboxType}' is not supported");
3030
}
3131

3232
services.AddSingleton<IOutboxListener, OutboxListener>();

0 commit comments

Comments
 (0)