Skip to content

Commit

Permalink
Improved exception message.
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnetjunkie committed Mar 25, 2020
1 parent f2aff0e commit e8eb42a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SimpleInjector/Diagnostics/Analyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ private static void RequiresContainerToBeVerified(Container container)
if (!container.SuccesfullyVerified)
{
throw new InvalidOperationException(
"Please make sure that Container.Verify() is called on the supplied container instance. " +
"Only successfully verified container instance can be analyzed.");
"Please make sure that Container.Verify(VerificationOption.VerifyOnly) is called on the " +
"supplied container instance. Only successfully verified container instance can be " +
"analyzed.");
}
}
}
Expand Down

0 comments on commit e8eb42a

Please sign in to comment.