Skip to content

Commit e8eb42a

Browse files
committed
Improved exception message.
1 parent f2aff0e commit e8eb42a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/SimpleInjector/Diagnostics/Analyzer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ private static void RequiresContainerToBeVerified(Container container)
102102
if (!container.SuccesfullyVerified)
103103
{
104104
throw new InvalidOperationException(
105-
"Please make sure that Container.Verify() is called on the supplied container instance. " +
106-
"Only successfully verified container instance can be analyzed.");
105+
"Please make sure that Container.Verify(VerificationOption.VerifyOnly) is called on the " +
106+
"supplied container instance. Only successfully verified container instance can be " +
107+
"analyzed.");
107108
}
108109
}
109110
}

0 commit comments

Comments
 (0)