summaryrefslogtreecommitdiff
path: root/xmake/scripts/action/_create.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/action/_create.lua')
-rw-r--r--xmake/scripts/action/_create.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/scripts/action/_create.lua b/xmake/scripts/action/_create.lua
index 1a18c79b6..840631f65 100644
--- a/xmake/scripts/action/_create.lua
+++ b/xmake/scripts/action/_create.lua
@@ -92,9 +92,10 @@ function _create.done()
end
-- copy the project files
- if not os.cp("project/*", xmake._PROJECT_DIR) then
+ local ok, errors = os.cp("project/*", xmake._PROJECT_DIR)
+ if not ok then
-- errors
- utils.error("copy files failed!")
+ utils.error(errors)
return false
end