Skip to content

Commit

Permalink
Log error message if temp copy files folder can’t be deleted
Browse files Browse the repository at this point in the history
This could happen if the folder contains a file/folder that user doesn’t have permission to delete.
  • Loading branch information
trevordevore committed Nov 7, 2018
1 parent 5af1788 commit 0426ef2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packager/packager.livecodescript
Expand Up @@ -231,7 +231,14 @@ command packagerPackageApplication pStandaloneStackFilename, pBuildProfile

# If not building standalone then leave folder in place. We are building for a simulator.
if tBuildStandalone and there is a folder tCopyFilesTempFolder then
local tDeleteError

_deleteFolder tCopyFilesTempFolder
put _errorMsg("Error cleaning up copy files temp folder [" & tCopyFilesTempFolder & "]", the result) into tDeleteError

if tDeleteError is not empty then
log tDeleteError
end if
end if

if tError is not empty then
Expand Down

0 comments on commit 0426ef2

Please sign in to comment.