From 34eb3b7a850456d3db1cbcaeb2818837d97648eb Mon Sep 17 00:00:00 2001 From: flb Date: Fri, 9 Jun 2023 15:06:43 +0200 Subject: [PATCH] gracefully exit when encoutering a botched download (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/238) --- source/utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/utils.cpp b/source/utils.cpp index 91a3fbf..4a3ffaa 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -148,7 +148,8 @@ namespace util { return; } if (!isArchive(filename)) { - brls::Application::crash("menus/utils/not_an_archive"_i18n); + ProgressEvent::instance().setStatusCode(406); + ProgressEvent::instance().setStep(ProgressEvent::instance().getMax()); } }