From d8e446dfad1195d0ed3a63e8945a2f96c73f84cc Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 5 Jun 2012 21:15:02 +0200 Subject: * fixed thread_cancel() not working when called without argument * new lane-global function set_error_reporting() to enable more data detailed data provided by lane_error() --- docs/index.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index 5fe992d..1aeffe9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -56,7 +56,7 @@


Copyright © 2007-12 Asko Kauppi, Benoit Germain. All rights reserved.
Lua Lanes is published under the same MIT license as Lua 5.1. -

This document was revised on 17-Feb-11, and applies to version 3.1.0 +

This document was revised on 17-Feb-11, and applies to version 3.1.2

@@ -431,9 +431,17 @@ Returns nil on timeout, nil,err,stack_tbl if the lane hit an e or the return values of the lane. Unlike in reading the results in table fashion, errors are not propagated.

-stack_tbl is an array of "<filename>:<line>" strings, -describing where the error was thrown. Use table.concat() to format -it to your liking (or just ignore it). + +
+ set_error_reporting("basic"|"extended") +
+

+ Sets the error reporting mode. "basic" is selected by default. +

+ stack_tbl is a table describing where the error was thrown.
+ In extended mode, stack_tbl is an array of tables containing info gathered with lua_getinfo() ("source","currentline","name","namewhat","what").
+In "basic mode", stack_tbl is an array of "<filename>:<line>" strings. Use table.concat() to format it to your liking (or just ignore it). +

If you use :join, make sure your lane main function returns a non-nil value so you can tell timeout and error cases apart from succesful -- cgit v1.2.3-55-g6feb