From fcbd48b0bef4527f2256d80b5e7901619fc25bf1 Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Mon, 22 Jan 2018 01:19:23 +0100 Subject: [PATCH] Improved error message --- Scripts/NodeDataCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/NodeDataCache.cs b/Scripts/NodeDataCache.cs index d6b7062..acffe69 100644 --- a/Scripts/NodeDataCache.cs +++ b/Scripts/NodeDataCache.cs @@ -68,7 +68,7 @@ namespace XNode { if (inputAttrib == null && outputAttrib == null) continue; - if (inputAttrib != null && outputAttrib != null) Debug.LogError("Field " + fieldInfo[i].Name + " cannot be both input and output."); + if (inputAttrib != null && outputAttrib != null) Debug.LogError("Field " + fieldInfo[i].Name + " of type " + nodeType.FullName + " cannot be both input and output."); else { if (!portDataCache.ContainsKey(nodeType)) portDataCache.Add(nodeType, new List()); portDataCache[nodeType].Add(new NodePort(fieldInfo[i]));