mirror of
https://github.com/Novetus/Novetus_src.git
synced 2025-01-31 09:41:33 +02:00
console now reports download outcomes
This commit is contained in:
parent
0f924008a2
commit
ddaf536fae
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user