mirror of https://github.com/dapr/dotnet-sdk.git
Fix FromTopic route binding error (#770)
https://github.com/dapr/dotnet-sdk/issues/706
This commit is contained in:
parent
fc54f21d00
commit
839acaf877
|
@ -64,7 +64,7 @@ namespace Dapr.AspNetCore
|
|||
{
|
||||
// If we get here this is a configuration error. The error is somewhat opaque on
|
||||
// purpose to avoid leaking too much information about the app.
|
||||
var message = $"Required value {key} not present.";
|
||||
var message = $"Required value {keyName} not present.";
|
||||
bindingContext.Result = ModelBindingResult.Failed();
|
||||
bindingContext.ModelState.TryAddModelError(bindingContext.ModelName, message);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue