summaryrefslogtreecommitdiff
path: root/xmake/core/base/string.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-05-23 00:49:55 +0800
committerruki <[email protected]>2019-05-22 22:59:33 +0800
commitaf7907d7adc0c60930477730876f0ed74d3a9f5a (patch)
tree4ceea76f5296c5a7d0851553a95ff33c1f2d5013 /xmake/core/base/string.lua
parent744ce235235533e695430daa1f96cbd35c69ac01 (diff)
improve trycall
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