Skip to content

Commit 0c55c2e

Browse files
authored
Fix code bug (#356)
- address #357
1 parent 2fa23f2 commit 0c55c2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.Web.Http/ModelBinding/ErrorParameterBinding.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public ErrorParameterBinding(HttpParameterDescriptor descriptor, string message)
2020
{
2121
if (message == null)
2222
{
23-
throw Error.ArgumentNull(message);
23+
throw Error.ArgumentNull("message");
2424
}
2525
_message = message;
2626
}
@@ -36,7 +36,7 @@ public override string ErrorMessage
3636
public override Task ExecuteBindingAsync(ModelMetadataProvider metadataProvider, HttpActionContext actionContext, CancellationToken cancellationToken)
3737
{
3838
// Caller should have already checked IsError before executing, so we shoulnd't be here.
39-
return TaskHelpers.FromError(new InvalidOperationException());
39+
return TaskHelpers.FromError(new InvalidOperationException());
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)