Skip to content

Commit

Permalink
fix(plugin): check if the target local asset is missing (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed May 12, 2022
1 parent a6f27b1 commit e3fa454
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public override IEnumerator PrepareAssetAsync(string name, string uniqueKey, boo
var assetPath = GetAssetPathFor(name);
var asset = AssetDatabase.LoadAssetAtPath<TextAsset>(assetPath);

if (asset == null)
{
throw new FileNotFoundException($"{assetPath} is not found. Check if {name} is included in the package");
}

Logger.LogVerbose(_TAG, $"Writing {name} data to {destFilePath}...");
if (!Directory.Exists(_CachePathRoot))
{
Expand Down

0 comments on commit e3fa454

Please sign in to comment.