Skip to content

Commit ec6e057

Browse files
JohannesLootkirre-bylund
authored andcommitted
Invoke error response
1 parent e50ec59 commit ec6e057

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Runtime/Client/LootLockerServerRequest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,10 @@ public static void UploadFile(string endPoint, LootLockerHTTPMethod httpMethod,
428428
Dictionary<string, string> headers = new Dictionary<string, string>();
429429
if (file.Length == 0)
430430
{
431-
LootLockerLogger.GetForLogLevel(LootLockerLogger.LogLevel.Error)("File content is empty, not allowed.");
431+
#if UNITY_EDITOR
432+
LootLockerLogger.GetForLogLevel(LootLockerLogger.LogLevel.Error)("File content is empty, not allowed.");
433+
#endif
434+
onComplete?.Invoke(LootLockerResponseFactory.Error<LootLockerResponse>("File content is empty, not allowed."));
432435
return;
433436
}
434437
if (useAuthToken)

0 commit comments

Comments
 (0)