Fix FromTopic route binding error (#770)

https://github.com/dapr/dotnet-sdk/issues/706
This commit is contained in:
halspang 2021-10-19 13:13:29 -07:00 committed by GitHub
parent fc54f21d00
commit 839acaf877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;