Skip to content

Commit

Permalink
add details link to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gasparnagy committed Nov 7, 2024
1 parent be7d37b commit 1e6e974
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private static void RegisterProxyBindings(IObjectContainer objectContainer, ISer
TResult GetTestThreadDependency<TResult>(IServiceProvider sp, Func<IContextManager, TResult> selector) where TResult: class
{
string GetErrorMessage()
=> $"Unable to access test execution dependent service '{typeof(TResult).FullName}' with the Reqnroll.Microsoft.Extensions.DependencyInjection plugin. This service is only available once test execution has been started and cannot be used in '[BeforeTestRun]' hook.";
=> $"Unable to access test execution dependent service '{typeof(TResult).FullName}' with the Reqnroll.Microsoft.Extensions.DependencyInjection plugin. This service is only available once test execution has been started and cannot be used in '[BeforeTestRun]' hook. See https://go.reqnroll.net/doc-migrate-specflow-testrun-hooks for details.";

if (!BindMappings.TryGetValue(sp, out var contextManager))
{
Expand Down

0 comments on commit 1e6e974

Please sign in to comment.