added a few tests for :pparse()

This commit is contained in:
mpeterv
2014-02-18 15:27:58 +04:00
parent a7c1ec8634
commit a0fe631b08
2 changed files with 20 additions and 1 deletions

View File

@@ -769,7 +769,7 @@ end
function Parser:pparse(args)
local errmsg
local ok, result = pcall(function()
return self:_parse(args, function(err)
return self:_parse(args, function(parser, err)
errmsg = err
return error()
end)