diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-04-02 12:17:32 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-04-02 12:17:32 (GMT) |
commit | f4b7658650c49deb8518bb22558332a16264cdf6 (patch) | |
tree | 0e5e3455e80f30f4b9cd842f575ebf50c5cd8fe6 /generic/tclEvent.c | |
parent | 4502b1fa0696dd647f8a38b72b8f689433bf98cd (diff) | |
download | tcl-f4b7658650c49deb8518bb22558332a16264cdf6.zip tcl-f4b7658650c49deb8518bb22558332a16264cdf6.tar.gz tcl-f4b7658650c49deb8518bb22558332a16264cdf6.tar.bz2 |
More generation of errorCode information (default [bgerror] and [glob]).
Diffstat (limited to 'generic/tclEvent.c')
-rw-r--r-- | generic/tclEvent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclEvent.c b/generic/tclEvent.c index a8bab0b..6816487 100644 --- a/generic/tclEvent.c +++ b/generic/tclEvent.c @@ -333,6 +333,7 @@ TclDefaultBgErrorHandlerObjCmd( if (valuePtr == NULL) { Tcl_SetObjResult(interp, Tcl_NewStringObj( "missing return option \"-level\"", -1)); + Tcl_SetErrorCode(interp, "TCL", "ARGUMENT", "MISSING", NULL); return TCL_ERROR; } if (Tcl_GetIntFromObj(interp, valuePtr, &level) == TCL_ERROR) { @@ -345,6 +346,7 @@ TclDefaultBgErrorHandlerObjCmd( if (valuePtr == NULL) { Tcl_SetObjResult(interp, Tcl_NewStringObj( "missing return option \"-code\"", -1)); + Tcl_SetErrorCode(interp, "TCL", "ARGUMENT", "MISSING", NULL); return TCL_ERROR; } if (Tcl_GetIntFromObj(interp, valuePtr, &code) == TCL_ERROR) { |