Always show updater errors
This commit is contained in:
parent
b79f1ada09
commit
d61c73a5dd
@ -27,6 +27,7 @@
|
|||||||
#define DATA_PATH_DEV "data-dev/"
|
#define DATA_PATH_DEV "data-dev/"
|
||||||
|
|
||||||
#define ERR_UPDATE_CHECK_FAIL "Failed to check for updates"
|
#define ERR_UPDATE_CHECK_FAIL "Failed to check for updates"
|
||||||
|
#define ERR_UPDATE_CHECK_FAIL_BAD_RESPONSE "Bad response"
|
||||||
#define ERR_DOWNLOAD_FAIL "Failed to download file "
|
#define ERR_DOWNLOAD_FAIL "Failed to download file "
|
||||||
#define ERR_WRITE_FAIL "Failed to write file "
|
#define ERR_WRITE_FAIL "Failed to write file "
|
||||||
|
|
||||||
@ -345,7 +346,7 @@ namespace updater
|
|||||||
|
|
||||||
if (!j.IsArray())
|
if (!j.IsArray())
|
||||||
{
|
{
|
||||||
set_update_check_status(true, false, ERR_UPDATE_CHECK_FAIL);
|
set_update_check_status(true, false, ERR_UPDATE_CHECK_FAIL_BAD_RESPONSE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,11 +12,6 @@ function startupdatecheck(popup, autoclose)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if (not updater.getupdatecheckstatus()) then
|
if (not updater.getupdatecheckstatus()) then
|
||||||
if (autoclose) then
|
|
||||||
LUI.FlowManager.RequestLeaveMenu(popup)
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
popup.text:setText("Error: " .. updater.getlasterror())
|
popup.text:setText("Error: " .. updater.getlasterror())
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user