Skip to content

Commit

Permalink
refactor: tweak exception message
Browse files Browse the repository at this point in the history
Co-authored-by: 沈星繁 <[email protected]>
  • Loading branch information
cnblogs-dudu and ikesnowy authored Feb 6, 2023
1 parent 9359606 commit 61a5b69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static IEndpointConventionBuilder Subscribe<TEvent>(
if (!serviceCheck.IsService(typeof(IEventBus)))
{
throw new InvalidOperationException(
$"{nameof(IEventBus)} has not been registered. Please using AddDaprEventBus to register.");
$"{nameof(IEventBus)} has not been registered. Did you forget to call IServiceCollection.AddDaprEventBus()?");
}

var result = builder
Expand Down

0 comments on commit 61a5b69

Please sign in to comment.