summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/base/os.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index a8338f470..f602e2df7 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -648,7 +648,7 @@ function os.cd(dir)
-- we can only change directory in main thread
if not xmake.in_main_thread() then
local thread = require("base/thread")
- os.raise("we cannot change directory in non-main thread(%s)", thread.running())
+ os.raise("we cannot change directory in non-main thread(%s)", thread.running() or "unknown")
end
-- support path instance