Skip to content

Commit 61a5b69

Browse files
refactor: tweak exception message
Co-authored-by: 沈星繁 <ikesnowy@outlook.com>
1 parent 9359606 commit 61a5b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cnblogs.Architecture.Ddd.EventBus.Dapr/EndPointExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static IEndpointConventionBuilder Subscribe<TEvent>(
6868
if (!serviceCheck.IsService(typeof(IEventBus)))
6969
{
7070
throw new InvalidOperationException(
71-
$"{nameof(IEventBus)} has not been registered. Please using AddDaprEventBus to register.");
71+
$"{nameof(IEventBus)} has not been registered. Did you forget to call IServiceCollection.AddDaprEventBus()?");
7272
}
7373

7474
var result = builder

0 commit comments

Comments
 (0)