Read<T>: error message improved

This commit is contained in:
vis2k 2022-09-25 13:19:44 +07:00
parent df875a4bc1
commit 3664f26d65

View File

@ -187,7 +187,7 @@ public T Read<T>()
Func<NetworkReader, T> readerDelegate = Reader<T>.read; Func<NetworkReader, T> readerDelegate = Reader<T>.read;
if (readerDelegate == null) if (readerDelegate == null)
{ {
Debug.LogError($"No reader found for {typeof(T)}. Use a type supported by Mirror or define a custom reader"); Debug.LogError($"No reader found for {typeof(T)}. Use a type supported by Mirror or define a custom reader extension for {typeof(T)}.");
return default; return default;
} }
return readerDelegate(this); return readerDelegate(this);