summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-21 23:16:09 +0800
committerruki <[email protected]>2020-02-21 13:36:57 +0800
commit93d3ae87fb02c5ba13049c67c80fe3713e0026bb (patch)
tree5d18f42f39b019a3dea6893e9fda7d76c90c52df
parent32d13d55ec9bbb2e777576dd0aed4b12a5efce6a (diff)
improve create dir tips
m---------core/src/tbox/tbox0
-rw-r--r--xmake/core/base/os.lua2
2 files changed, 1 insertions, 1 deletions
diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox
-Subproject 6e6a0e8e766318708e3a2438ff6a9af7d8439e5
+Subproject a89476007fe903e394672f8ca2d4c53d15cc41f
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 52e9bf075..0ec557dcb 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -525,7 +525,7 @@ function os.mkdir(...)
-- create directories
for _, dir in ipairs(os.argw(args)) do
if not os._mkdir(dir) then
- return false, string.format("create directory: %s failed!", dir)
+ return false, string.format("cannot create directory: %s, error: %s", dir, os.strerror())
end
end