Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add commented out option for disabling try system
  • Loading branch information
sorear committed Nov 6, 2011
1 parent d1dbce3 commit b6be7a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/runtime/Try.lua
Expand Up @@ -49,6 +49,7 @@ function try(fn, ...)
setmetatable(_G,_mtg)

local ok = {pcall(function() return fn(unpack(real_args)) end)}
--local ok = {true, fn(unpack(real_args))}

setmetatable(_G,_orig)
for k,__ in pairs(locals) do rawset(_G,k.."___macro",nil) end
Expand Down Expand Up @@ -169,4 +170,4 @@ __exceptions = {
["attempt to compare .+"] = {
E.ComparisonError,
},
}
}

0 comments on commit b6be7a2

Please sign in to comment.