mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-08 11:31:43 +00:00
gracefully exit when encoutering a botched download (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/238)
This commit is contained in:
parent
9c9b969931
commit
34eb3b7a85
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ namespace util {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!isArchive(filename)) {
|
if (!isArchive(filename)) {
|
||||||
brls::Application::crash("menus/utils/not_an_archive"_i18n);
|
ProgressEvent::instance().setStatusCode(406);
|
||||||
|
ProgressEvent::instance().setStep(ProgressEvent::instance().getMax());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue