diff --git a/src/Microsoft.AspNet.Owin/OwinEnvironment.cs b/src/Microsoft.AspNet.Owin/OwinEnvironment.cs index 6e132e632f..8a0e7cbcfd 100644 --- a/src/Microsoft.AspNet.Owin/OwinEnvironment.cs +++ b/src/Microsoft.AspNet.Owin/OwinEnvironment.cs @@ -37,11 +37,11 @@ namespace Microsoft.AspNet.Owin { if (context.GetFeature() == null) { - throw new ArgumentException("Missing required IHttpRequestFeature", "context"); + throw new ArgumentException("Missing required feature: " + nameof(IHttpRequestFeature) + ".", "context"); } if (context.GetFeature() == null) { - throw new ArgumentException("Missing required IHttpResponseFeature", "context"); + throw new ArgumentException("Missing required feature: " + nameof(IHttpResponseFeature) + ".", "context"); } _context = context;