Operation handles support error queries

操作句柄支持错误信息查询。
This commit is contained in:
hevinci
2022-04-24 18:30:35 +08:00
parent cbf142dbf8
commit 9bf22f2c79
19 changed files with 170 additions and 45 deletions

View File

@@ -84,7 +84,7 @@ namespace YooAsset
{
if (string.IsNullOrEmpty(location))
{
Debug.LogError("location param is null or empty!");
YooLogger.Error("location param is null or empty!");
}
else
{
@@ -93,11 +93,11 @@ namespace YooAsset
if (index != -1)
{
if (location.Length == index + 1)
Debug.LogWarning($"Found blank character in location : \"{location}\"");
YooLogger.Warning($"Found blank character in location : \"{location}\"");
}
if (location.IndexOfAny(Path.GetInvalidPathChars()) >= 0)
Debug.LogWarning($"Found illegal character in location : \"{location}\"");
YooLogger.Warning($"Found illegal character in location : \"{location}\"");
}
}
#endif