From 61ae08bdfaf5f8dbde739677ce6997b28560a522 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 16 Dec 2015 21:34:20 +0800 Subject: fix create template --- xmake/scripts/action/_create.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xmake/scripts/action/_create.lua') 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 -- cgit v1.3.1