From 97ec4bbf42000f8a5517c8f92486c5b7f5404bd8 Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Sat, 12 May 2018 14:40:23 +0200 Subject: [PATCH] Improved warning message --- Scripts/NodePort.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/NodePort.cs b/Scripts/NodePort.cs index 65ad4be..0ada72d 100644 --- a/Scripts/NodePort.cs +++ b/Scripts/NodePort.cs @@ -190,7 +190,7 @@ namespace XNode { public void Connect(NodePort port) { if (connections == null) connections = new List(); if (port == null) { Debug.LogWarning("Cannot connect to null port"); return; } - if (port == this) { Debug.LogWarning("Attempting to connect port to self."); return; } + if (port == this) { Debug.LogWarning("Cannot connect port to self."); return; } if (IsConnectedTo(port)) { Debug.LogWarning("Port already connected. "); return; } if (direction == port.direction) { Debug.LogWarning("Cannot connect two " + (direction == IO.Input ? "input" : "output") + " connections"); return; } if (port.connectionType == Node.ConnectionType.Override && port.ConnectionCount != 0) { port.ClearConnections(); }