diff options
| author | ruki <[email protected]> | 2015-12-16 21:34:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-16 21:35:01 +0800 |
| commit | 61ae08bdfaf5f8dbde739677ce6997b28560a522 (patch) | |
| tree | a45686f101d27d5a9b11ff8760770e4bdd44d736 /xmake/scripts | |
| parent | 686e71f6395ea37d2c496e189cc18380841083b2 (diff) | |
fix create template
Diffstat (limited to 'xmake/scripts')
| -rw-r--r-- | xmake/scripts/action/_create.lua | 5 |
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 |
