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);
|
download.InitDownload(path, fileext, "", true, false);
|
||||||
if (download.getDownloadOutcome().Contains("Error"))
|
if (download.getDownloadOutcome().Contains("Error"))
|
||||||
{
|
{
|
||||||
|
Util.ConsolePrint("Download Outcome: " + download.getDownloadOutcome(), 2);
|
||||||
throw new IOException(download.getDownloadOutcome());
|
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"))
|
if (download.getDownloadOutcome().Contains("Error"))
|
||||||
{
|
{
|
||||||
|
Util.ConsolePrint("Download Outcome: " + download.getDownloadOutcome(), 2);
|
||||||
boxicon = MessageBoxIcon.Error;
|
boxicon = MessageBoxIcon.Error;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Util.ConsolePrint("Download Outcome: " + download.getDownloadOutcome(), 3);
|
||||||
|
}
|
||||||
|
|
||||||
MessageBox.Show(download.getDownloadOutcome(), "Asset Downloader - Download Completed", MessageBoxButtons.OK, boxicon);
|
MessageBox.Show(download.getDownloadOutcome(), "Asset Downloader - Download Completed", MessageBoxButtons.OK, boxicon);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue