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.