diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2012-06-05 21:15:02 +0200 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2012-06-05 21:15:02 +0200 |
commit | d8e446dfad1195d0ed3a63e8945a2f96c73f84cc (patch) | |
tree | d475a5164d55a0633ff4ab64bbcda736ec3bd116 /docs | |
parent | 1c33960abd867e425bad2633a85504f55a1f261c (diff) | |
download | lanes-d8e446dfad1195d0ed3a63e8945a2f96c73f84cc.tar.gz lanes-d8e446dfad1195d0ed3a63e8945a2f96c73f84cc.tar.bz2 lanes-d8e446dfad1195d0ed3a63e8945a2f96c73f84cc.zip |
* 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()
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.html | 16 |
1 files changed, 12 insertions, 4 deletions
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 @@ | |||
56 | 56 | ||
57 | <p><br/><font size="-1"><i>Copyright © 2007-12 Asko Kauppi, Benoit Germain. All rights reserved.</i> | 57 | <p><br/><font size="-1"><i>Copyright © 2007-12 Asko Kauppi, Benoit Germain. All rights reserved.</i> |
58 | <br>Lua Lanes is published under the same <A HREF="http://en.wikipedia.org/wiki/MIT_License">MIT license</A> as Lua 5.1. | 58 | <br>Lua Lanes is published under the same <A HREF="http://en.wikipedia.org/wiki/MIT_License">MIT license</A> as Lua 5.1. |
59 | </p><p>This document was revised on 17-Feb-11, and applies to version 3.1.0 | 59 | </p><p>This document was revised on 17-Feb-11, and applies to version 3.1.2 |
60 | </font></p> | 60 | </font></p> |
61 | 61 | ||
62 | </center> | 62 | </center> |
@@ -431,9 +431,17 @@ Returns <tt>nil</tt> on timeout, <tt>nil,err,stack_tbl</tt> if the lane hit an e | |||
431 | or the return values of the lane. Unlike in reading the results in table | 431 | or the return values of the lane. Unlike in reading the results in table |
432 | fashion, errors are not propagated. | 432 | fashion, errors are not propagated. |
433 | </p><p> | 433 | </p><p> |
434 | <tt>stack_tbl</tt> is an array of "<filename>:<line>" strings, | 434 | |
435 | describing where the error was thrown. Use <tt>table.concat()</tt> to format | 435 | <table border=1 bgcolor="#E0E0FF" cellpadding=10><tr><td> |
436 | it to your liking (or just ignore it). | 436 | <code>set_error_reporting("basic"|"extended")</code> |
437 | </table> | ||
438 | </p><p> | ||
439 | Sets the error reporting mode. "basic" is selected by default. | ||
440 | </p><p> | ||
441 | <tt>stack_tbl</tt> is a table describing where the error was thrown.<br/> | ||
442 | In extended mode, <tt>stack_tbl</tt> is an array of tables containing info gathered with <tt>lua_getinfo()</tt> (<tt>"source"</tt>,<tt>"currentline"</tt>,<tt>"name"</tt>,<tt>"namewhat"</tt>,<tt>"what"</tt>).<br/> | ||
443 | In "basic mode", <tt>stack_tbl</tt> is an array of "<filename>:<line>" strings. Use <tt>table.concat()</tt> to format it to your liking (or just ignore it). | ||
444 | |||
437 | </p><p> | 445 | </p><p> |
438 | If you use <tt>:join</tt>, make sure your lane main function returns | 446 | If you use <tt>:join</tt>, make sure your lane main function returns |
439 | a non-nil value so you can tell timeout and error cases apart from succesful | 447 | a non-nil value so you can tell timeout and error cases apart from succesful |