1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Fix crash if zip file cannot be opened (#14636)

Helped-by: savilli <78875209+savilli@users.noreply.github.com>
This commit is contained in:
grorp
2024-05-12 11:46:39 +02:00
committed by GitHub
parent a8af0c0ca4
commit 57b6e74abb
2 changed files with 5 additions and 1 deletions

View File

@@ -71,7 +71,9 @@ local function download_and_extract(param)
os.remove(filename)
if tempfolder == "" then
return {
msg = fgettext_ne("Failed to extract \"$1\" (unsupported file type or broken archive)", package.title),
msg = fgettext_ne("Failed to extract \"$1\" " ..
"(insufficient disk space, unsupported file type or broken archive)",
package.title),
}
end