Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Update ConfigureServicesBuilder exception message #502
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo committed May 20, 2016
1 parent bdc3959 commit fe20d59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public ConfigureServicesBuilder(MethodInfo configureServices)
if (parameters.Length > 1 ||
parameters.Any(p => p.ParameterType != typeof(IServiceCollection)))
{
throw new InvalidOperationException("ConfigureServices can take at most a single IServiceCollection parameter.");
throw new InvalidOperationException("The ConfigureServices method must either be parameterless or take only one parameter of type IServiceCollection.");
}

MethodInfo = configureServices;
Expand Down

0 comments on commit fe20d59

Please sign in to comment.