summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-02-24 00:14:05 +0800
committerruki <[email protected]>2018-02-23 19:24:32 +0800
commitf14144e07da1fb856c14eff80255c0a9d50e68b4 (patch)
tree9b074cedfb2cee57ed64c2adf1eab3ab2322d94c
parent608635444ae0cfe42924111fe9b856730fa4fdc3 (diff)
improve os.cp error tips
-rw-r--r--xmake/core/base/os.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 3841a9d89..c5b1a2867 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -58,7 +58,7 @@ function os._cp(src, dst)
-- copy file
if not os.cpfile(src, dst) then
- return false, string.format("cannot copy file %s to %s %s", src, dst, os.strerror())
+ return false, string.format("cannot copy file %s to %s, error: %s", src, dst, os.strerror())
end
-- is directory?
elseif os.isdir(src) then
@@ -70,12 +70,12 @@ function os._cp(src, dst)
-- copy directory
if not os.cpdir(src, dst) then
- return false, string.format("cannot copy directory %s to %s %s", src, dst, os.strerror())
+ return false, string.format("cannot copy directory %s to %s, error: %s", src, dst, os.strerror())
end
-- not exists?
else
- return false, string.format("cannot copy file %s, not found this file %s", src, os.strerror())
+ return false, string.format("cannot copy file %s, error: not found this file", src)
end
-- ok