Skip to content

Commit

Permalink
Added try catch to whole process
Browse files Browse the repository at this point in the history
  • Loading branch information
dalkia committed Mar 8, 2024

Verified

This commit was signed with the committer’s verified signature.
dalkia Juan Ignacio Molteni
1 parent 4a6305d commit 0a62e32
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -35,9 +35,16 @@ public static async void ExportURLLODsToAssetBundles()
var urlFileDownloader = new URLFileDownloader(lodsURL, tempPath);
string[] downloadedFiles = await urlFileDownloader.Download();
Debug.Log("Finished file download");
AssetDatabase.SaveAssets();
ExportFilesToAssetBundles(downloadedFiles, customOutputDirectory);
Utils.Exit();
try
{
AssetDatabase.SaveAssets();
ExportFilesToAssetBundles(downloadedFiles, customOutputDirectory);
Utils.Exit();
}
catch (Exception e)
{
Utils.Exit(1);
}
}


0 comments on commit 0a62e32

Please sign in to comment.