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
  • Loading branch information
rubenwardy committed Aug 15, 2022
1 parent aa2fdc6 commit a2c5eae
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 @@ -124,12 +124,12 @@ local function start_install(package, reason)

local function callback(result)
if result.msg then
gamedata.errormessage = result.msg
gamedata.errormessage = fgettext("Error downloading \"$1\": $2", package.title, result.msg)
else
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 a2c5eae

Please sign in to comment.