Browse Source

Added clearer exception message in DocumentUpdater

CPKreuz 11 months ago
parent
commit
bcaf4c3b3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/PixiEditor/Models/DocumentModels/DocumentUpdater.cs

+ 1 - 1
src/PixiEditor/Models/DocumentModels/DocumentUpdater.cs

@@ -515,7 +515,7 @@ internal class DocumentUpdater
         var nodeViewModelType = Type.GetType(fullViewModelName);
         var nodeViewModelType = Type.GetType(fullViewModelName);
 
 
         if (nodeViewModelType == null)
         if (nodeViewModelType == null)
-            throw new NullReferenceException($"No ViewModel found for {nodeType}. Looking for '{name}'");
+            throw new NullReferenceException($"No ViewModel found for {nodeType}. Looking for '{fullViewModelName}'");
         
         
         var viewModel = (NodeViewModel)Activator.CreateInstance(nodeViewModelType);
         var viewModel = (NodeViewModel)Activator.CreateInstance(nodeViewModelType);