Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
diakopter committed Nov 9, 2011
1 parent fe6b2b0 commit 98852e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/runtime/Try.lua
Expand Up @@ -6,7 +6,7 @@ setmetatable(E, {__index = function(self,k) return k end})
function try_catch_finally(try, exception_class, catch, finally)
local ok, exception = pcall(try)
local caught = false
if catch ~= nil and exception ~= nil then
if catch ~= nil and not ok then
local is_table = type(exception) == "table"
if is_table and exception.class == exception_class or not is_table then
caught = true
Expand Down

0 comments on commit 98852e3

Please sign in to comment.