console now reports download outcomes

This commit is contained in:
Bitl 2022-11-02 14:49:58 -07:00
parent 0f924008a2
commit ddaf536fae
2 changed files with 10 additions and 0 deletions

View File

@ -616,8 +616,13 @@ public static class RobloxXML
download.InitDownload(path, fileext, "", true, false);
if (download.getDownloadOutcome().Contains("Error"))
{
Util.ConsolePrint("Download Outcome: " + download.getDownloadOutcome(), 2);
throw new IOException(download.getDownloadOutcome());
}
else
{
Util.ConsolePrint("Download Outcome: " + download.getDownloadOutcome(), 3);
}
}
}

View File

@ -148,8 +148,13 @@ public partial class AssetDownloader : Form
if (download.getDownloadOutcome().Contains("Error"))
{
Util.ConsolePrint("Download Outcome: " + download.getDownloadOutcome(), 2);
boxicon = MessageBoxIcon.Error;
}
else
{
Util.ConsolePrint("Download Outcome: " + download.getDownloadOutcome(), 3);
}
MessageBox.Show(download.getDownloadOutcome(), "Asset Downloader - Download Completed", MessageBoxButtons.OK, boxicon);
}