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

Commit b5156a0

Browse files
committed
Argument validation cleanup.
1 parent ba693dd commit b5156a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.AspNet.Owin/OwinEnvironment.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ public OwinEnvironment(HttpContext context)
3737
{
3838
if (context.GetFeature<IHttpRequestFeature>() == null)
3939
{
40-
throw new ArgumentException("Missing required IHttpRequestFeature", "context");
40+
throw new ArgumentException("Missing required feature: " + nameof(IHttpRequestFeature) + ".", "context");
4141
}
4242
if (context.GetFeature<IHttpResponseFeature>() == null)
4343
{
44-
throw new ArgumentException("Missing required IHttpResponseFeature", "context");
44+
throw new ArgumentException("Missing required feature: " + nameof(IHttpResponseFeature) + ".", "context");
4545
}
4646

4747
_context = context;

0 commit comments

Comments
 (0)