aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2014-01-05 08:58:45 +1000
committerSteve Bennett <steveb@workware.net.au>2014-01-15 07:46:32 +1000
commit8b500353d19b52097d7804909bf49f07ae16d15d (patch)
tree43b20cd79abe8480ff4b26c53f12c9a3d08a15fb
parentafe074ccf68410addadb5e30d928b05fc02fdff6 (diff)
downloadjimtcl-8b500353d19b52097d7804909bf49f07ae16d15d.zip
jimtcl-8b500353d19b52097d7804909bf49f07ae16d15d.tar.gz
jimtcl-8b500353d19b52097d7804909bf49f07ae16d15d.tar.bz2
doc: improve documentation for bgerror
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r--jim_tcl.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index 5d511e5..0e1be5d 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -4558,13 +4558,15 @@ Time-based execution is also available via the eventloop API.
Scripts are executed at the global scope. If an error occurs during a handler script,
an attempt is made to call (the user-defined command) `bgerror` with the details of the error.
-If the `bgerror` commands does not exist, it is printed to stderr instead.
+If the `bgerror` command does not exist, the error message details are printed to stderr instead.
If a file event handler script generates an error, the handler is automatically removed
to prevent infinite errors. (A time event handler is always removed after execution).
-+*bgerror* 'error'+::
- Called when an event handler script generates an error.
++*bgerror* 'msg'+::
+ Called when an event handler script generates an error. Note that the normal command resolution
+ rules are used for bgerror. First the name is resolved in the current namespace, then in the
+ global scope.
socket
~~~~~~