Skip to content

Commit bcf0bc8

Browse files
lukedukeusjeremydmiller
authored andcommitted
make error message more accurate
1 parent c08118e commit bcf0bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Wolverine/Configuration/HandlerDiscovery.Diagnostics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private void writeAssemblyIsNotRegistered(WolverineOptions options, Type candida
124124
writer.WriteLine("To fix this, add the assembly to your application by either:");
125125
writer.WriteLine("1. Either add the [assembly: WolverineModule] attribute to this assembly");
126126
writer.WriteLine(
127-
$"2. Or add WolverineOptions.Discovery.IncludeAssembly({candidateType.FullNameInCode()}.Assembly); within your UseWolverine() setup");
127+
$"2. Or add `WolverineOptions.Discovery.IncludeAssembly(typeof({candidateType.FullNameInCode()}).Assembly);` within your UseWolverine() setup");
128128
writer.WriteLine();
129129

130130
if (options.ApplicationAssembly != null)

0 commit comments

Comments
 (0)