summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-05 22:29:54 +0800
committerruki <[email protected]>2025-11-07 15:01:57 +0800
commit73164da00f143002aba05d1d484fd31929448eb9 (patch)
tree4d5c1ed544f59584cc1c4324dad42ac3ea58acca
parent1e21a94d7bf8dad3eff10888458dfc7f1be39b11 (diff)
fix logs
-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