summaryrefslogtreecommitdiff
path: root/xmake/core/base/string.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/string.lua')
-rw-r--r--xmake/core/base/string.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/string.lua b/xmake/core/base/string.lua
index 5aabba734..b27d076d5 100644
--- a/xmake/core/base/string.lua
+++ b/xmake/core/base/string.lua
@@ -205,7 +205,7 @@ function string.tryformat(format, ...)
if ok then
return str
else
- return format
+ return tostring(format)
end
end