Skip to content

Commit 1bb477d

Browse files
kirre-bylundkristijan-ujevic
authored andcommitted
Clarify error messages
1 parent e3b17d5 commit 1bb477d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Runtime/Client/LootLockerBaseServerAPI.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ IEnumerator coroutine()
116116
LootLockerResponse response = new LootLockerResponse();
117117
response.statusCode = (int)webRequest.responseCode;
118118
#if UNITY_2020_1_OR_NEWER
119+
LootLockerLogger.GetForLogLevel(LootLockerLogger.LogLevel.Warning)("webRequest.result: " + webRequest.result + ", .error: " + webRequest.error);
119120
if (webRequest.result == UnityWebRequest.Result.ProtocolError || webRequest.result == UnityWebRequest.Result.ConnectionError || !string.IsNullOrEmpty(webRequest.error))
120121
#else
122+
LootLockerLogger.GetForLogLevel(LootLockerLogger.LogLevel.Warning)("webRequest.isHttpError: " + webRequest.isHttpError + ", .isNetworkError: " + webRequest.isNetworkError + ", .error: " + webRequest.error);
121123
if (webRequest.isHttpError || webRequest.isNetworkError || !string.IsNullOrEmpty(webRequest.error))
122124
#endif
123125

0 commit comments

Comments
 (0)