Skip to content

Commit

Permalink
Add game title and author to ContentDB error messages
Browse files Browse the repository at this point in the history
Fixes #12671
  • Loading branch information
rubenwardy committed Aug 15, 2022
1 parent aa2fdc6 commit 60f114c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/mainmenu/dlg_contentstore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ local function download_and_extract(param)
os.remove(filename)
if not tempfolder then
return {
msg = fgettext("Install: Unsupported file type or broken archive"),
msg = fgettext("Failed to extract $1 (unsupported file type or broken archive)", package.title),
}
end

Expand All @@ -129,7 +129,7 @@ local function start_install(package, reason)
local path, msg = pkgmgr.install_dir(package.type, result.path, package.name, package.path)
core.delete_dir(result.path)
if not path then
gamedata.errormessage = msg
gamedata.errormessage = fgettext("Error installing \"$1\": $2", package.title, msg)
else
core.log("action", "Installed package to " .. path)

Expand Down

0 comments on commit 60f114c

Please sign in to comment.