From f14144e07da1fb856c14eff80255c0a9d50e68b4 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 24 Feb 2018 00:14:05 +0800 Subject: improve os.cp error tips --- xmake/core/base/os.lua | 6 +++--- 1 file 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 -- cgit v1.3.1