From 0ceada8da92135717d31a3954b5b89a954f9e71a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 22 Dec 2020 10:54:25 -0300 Subject: Report last error in closing methods When there are multiple errors around closing methods, report the last error instead of the original. --- manual/manual.of | 5 ----- 1 file changed, 5 deletions(-) (limited to 'manual') 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. If there is any error while running a closing method, that error is handled like an error in the regular code where the variable was defined. - After an error, the other pending closing methods will still be called. -Errors in these methods -interrupt the respective method and generate a warning, -but are otherwise ignored; -the error reported is only the original one. If a coroutine yields and is never resumed again, some variables may never go out of scope, -- cgit v1.2.3-55-g6feb