aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-22 10:54:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-22 10:54:25 -0300
commit0ceada8da92135717d31a3954b5b89a954f9e71a (patch)
tree99655e44791a11bf805d9f059da7391310618eec /manual
parentf9d29b0c442447ebe429bcaad1e2b4bf13c5dc93 (diff)
downloadlua-0ceada8da92135717d31a3954b5b89a954f9e71a.tar.gz
lua-0ceada8da92135717d31a3954b5b89a954f9e71a.tar.bz2
lua-0ceada8da92135717d31a3954b5b89a954f9e71a.zip
Report last error in closing methods
When there are multiple errors around closing methods, report the last error instead of the original.
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of5
1 files changed, 0 insertions, 5 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 5d0c35cf..c5385258 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -1630,13 +1630,8 @@ they are closed in the reverse order that they were declared.
1630If there is any error while running a closing method, 1630If there is any error while running a closing method,
1631that error is handled like an error in the regular code 1631that error is handled like an error in the regular code
1632where the variable was defined. 1632where the variable was defined.
1633
1634After an error, 1633After an error,
1635the other pending closing methods will still be called. 1634the other pending closing methods will still be called.
1636Errors in these methods
1637interrupt the respective method and generate a warning,
1638but are otherwise ignored;
1639the error reported is only the original one.
1640 1635
1641If a coroutine yields and is never resumed again, 1636If a coroutine yields and is never resumed again,
1642some variables may never go out of scope, 1637some variables may never go out of scope,