summaryrefslogtreecommitdiff
path: root/xmake/scripts/action/_create.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-16 21:34:20 +0800
committerruki <[email protected]>2015-12-16 21:35:01 +0800
commit61ae08bdfaf5f8dbde739677ce6997b28560a522 (patch)
treea45686f101d27d5a9b11ff8760770e4bdd44d736 /xmake/scripts/action/_create.lua
parent686e71f6395ea37d2c496e189cc18380841083b2 (diff)
fix create template
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