From ef634fa125209f045da07f65beba7674caf1c10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Luke=C5=A1?= Date: Thu, 18 Jan 2024 10:57:06 +0100 Subject: [PATCH] Fix data context path in InvalidCommandInvocationException --- src/Framework/Framework/Runtime/Commands/EventValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Framework/Framework/Runtime/Commands/EventValidator.cs b/src/Framework/Framework/Runtime/Commands/EventValidator.cs index d0cbfe1ba7..81320d3761 100644 --- a/src/Framework/Framework/Runtime/Commands/EventValidator.cs +++ b/src/Framework/Framework/Runtime/Commands/EventValidator.cs @@ -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 {