summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules/try.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-12-14 09:37:32 +0800
committerruki <[email protected]>2016-12-14 09:37:32 +0800
commit904e8c1e0a5ae2f0d6df767f41cf0a3a13a087e4 (patch)
treed34101d00578631f428ec521d88efa1145c2ce19 /xmake/core/sandbox/modules/try.lua
parent4ea08c92f616bd2c126c36d2bebb5f322ee21c9b (diff)
improve gcc error and warning tips
Diffstat (limited to 'xmake/core/sandbox/modules/try.lua')
-rw-r--r--xmake/core/sandbox/modules/try.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/try.lua b/xmake/core/sandbox/modules/try.lua
index a85008269..dead086a8 100644
--- a/xmake/core/sandbox/modules/try.lua
+++ b/xmake/core/sandbox/modules/try.lua
@@ -108,7 +108,7 @@ function sandbox_try.try(block)
-- run the finally function
if funcs and funcs.finally then
- funcs.finally(utils.ifelse(ok, errors, nil))
+ funcs.finally(ok, errors)
end
-- ok?