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(); }