Skip to content

Commit

Permalink
Fix data context path in InvalidCommandInvocationException
Browse files Browse the repository at this point in the history
  • Loading branch information
exyi committed Jan 31, 2024
1 parent ad836ac commit f91e4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/Framework/Runtime/Commands/EventValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private FindBindingResult FindCommandBinding(string[] path, string commandId,
else if (candidateBindings.All(b => !b.Key.DataContextPathMatch))
{
// nothing in the specified data context path
errorMessage = $"Invalid command invocation - Nothing was found inside DataContext '{path}'. Please check if ViewModel is populated.";
errorMessage = $"Invalid command invocation - Nothing was found inside DataContext '{string.Join("/", path)}'. Please check if ViewModel is populated.";
}
else
{
Expand Down

0 comments on commit f91e4df

Please sign in to comment.