From 93d3ae87fb02c5ba13049c67c80fe3713e0026bb Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 21 Feb 2020 23:16:09 +0800 Subject: improve create dir tips --- core/src/tbox/tbox | 2 +- xmake/core/base/os.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox index 6e6a0e8e7..a89476007 160000 --- a/core/src/tbox/tbox +++ b/core/src/tbox/tbox @@ -1 +1 @@ -Subproject commit 6e6a0e8e766318708e3a2438ff6a9af7d8439e57 +Subproject commit a89476007fe903e394672f8ca2d4c53d15cc41fc 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 -- cgit v1.3.1