Commit 2046e5d8 authored by ElderLich's avatar ElderLich

Bug Fix: Fix incorrect image download error log formatting

Tools.DownloadImageAsync used an interpolated format string with LogErrorFormat, causing misleading logs like Image [0]: 1. Updated the log call to use a proper format string so failed image downloads now show the real URL and UnityWebRequest error.
parent 87b7bae8
...@@ -224,7 +224,7 @@ namespace MDPro3 ...@@ -224,7 +224,7 @@ namespace MDPro3
} }
else else
{ {
UnityEngine.Debug.LogErrorFormat($"Image [{0}]: {1}", url, request.error); UnityEngine.Debug.LogErrorFormat("Image [{0}]: {1}", url, request.error);
return null; return null;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment