fix: correctly fail when assets don't download

This commit is contained in:
goat 2020-08-08 12:43:49 +02:00
parent 3f2be06abb
commit 811ec77bee
2 changed files with 12 additions and 4 deletions

View file

@ -91,9 +91,15 @@ namespace Dalamud {
Task.Run(async () => {
try {
await AssetManager.EnsureAssets(this.baseDirectory);
var res = await AssetManager.EnsureAssets(this.baseDirectory);
if (!res) {
Log.Error("One or more assets failed to download.");
Unload();
return;
}
} catch (Exception e) {
Log.Error(e, "Could not ensure assets.");
Log.Error(e, "Error in asset task.");
Unload();
return;
}