summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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