Skip to content

Commit 36bb660

Browse files
fix: Misleading error messages when not setting up Relay correctly (#2555)
1 parent 26d75b2 commit 36bb660

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ private bool ClientBindAndConnect()
524524
//reflection, but this does not live in the context of a performance-critical loop, it runs once at initial connection time.
525525
if (m_RelayServerData.Equals(default(RelayServerData)))
526526
{
527-
Debug.LogError("You must call SetRelayServerData() at least once before calling StartRelayServer.");
527+
Debug.LogError("You must call SetRelayServerData() at least once before calling StartClient.");
528528
return false;
529529
}
530530

@@ -710,7 +710,7 @@ private bool StartRelayServer()
710710
//reflection, but this does not live in the context of a performance-critical loop, it runs once at initial connection time.
711711
if (m_RelayServerData.Equals(default(RelayServerData)))
712712
{
713-
Debug.LogError("You must call SetRelayServerData() at least once before calling StartRelayServer.");
713+
Debug.LogError("You must call SetRelayServerData() at least once before calling StartServer.");
714714
return false;
715715
}
716716
else

0 commit comments

Comments
 (0)