From ddaf536faedd8fe2deefcd37d69c7f0169854037 Mon Sep 17 00:00:00 2001 From: Bitl Date: Wed, 2 Nov 2022 14:49:58 -0700 Subject: [PATCH] console now reports download outcomes --- Novetus/NovetusCore/StorageAndFunctions/NovetusFuncs.cs | 5 +++++ Novetus/NovetusLauncher/Forms/SDK/AssetDownloader.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Novetus/NovetusCore/StorageAndFunctions/NovetusFuncs.cs b/Novetus/NovetusCore/StorageAndFunctions/NovetusFuncs.cs index 3b247af..8de25e8 100644 --- a/Novetus/NovetusCore/StorageAndFunctions/NovetusFuncs.cs +++ b/Novetus/NovetusCore/StorageAndFunctions/NovetusFuncs.cs @@ -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); + } } } diff --git a/Novetus/NovetusLauncher/Forms/SDK/AssetDownloader.cs b/Novetus/NovetusLauncher/Forms/SDK/AssetDownloader.cs index bd9b69a..d56fc14 100644 --- a/Novetus/NovetusLauncher/Forms/SDK/AssetDownloader.cs +++ b/Novetus/NovetusLauncher/Forms/SDK/AssetDownloader.cs @@ -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); }