1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-24 18:42:05 +00:00

gracefully exit when encoutering a botched download (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/238)

This commit is contained in:
flb 2023-06-09 15:06:43 +02:00
parent 9c9b969931
commit 34eb3b7a85

View file

@ -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());
}
}