From 9fe38c654f6c62a4f11d993bd79c710af9313fbd Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Wed, 24 Feb 2016 00:48:43 +0100 Subject: Don't swallow errors in finalizers. --- doc/socket.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'doc/socket.html') diff --git a/doc/socket.html b/doc/socket.html index a43a208..08ef784 100644 --- a/doc/socket.html +++ b/doc/socket.html @@ -167,8 +167,7 @@ is raised.

Finalizer is a function that will be called before -try throws the exception. It will be called -in protected mode. +try throws the exception.

-- cgit v1.2.3-55-g6feb From 0341516a2932e077b547f8105e0ea13f3f56f868 Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Wed, 24 Feb 2016 06:59:37 +0100 Subject: Clarify documentation for try/protect. --- doc/socket.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'doc/socket.html') diff --git a/doc/socket.html b/doc/socket.html index 08ef784..fec09c4 100644 --- a/doc/socket.html +++ b/doc/socket.html @@ -215,8 +215,9 @@ to throw exceptions.

-Returns an equivalent function that instead of throwing exceptions, -returns nil followed by an error message. +Returns an equivalent function that instead of throwing exceptions in case of +a failed try call, returns nil +followed by an error message.

@@ -415,8 +416,9 @@ socket.try(ret1 [, ret2 ... retN])

-Throws an exception in case of error. The exception can only be caught -by the protect function. +Throws an exception in case ret1 is falsy, using +ret2 as the error message. The exception is supposed to be caught +by a protected function only.

-- cgit v1.2.3-55-g6feb