diff options
author | dkf <dkf@noemail.net> | 2011-04-02 12:17:32 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2011-04-02 12:17:32 (GMT) |
commit | 925edaa363d92595b4e1b60552d08fc5f4284c5d (patch) | |
tree | 0e5e3455e80f30f4b9cd842f575ebf50c5cd8fe6 /generic/tclEvent.c | |
parent | 48fc066e9945b51dcfc57ccf86be22426b9e6ee6 (diff) | |
download | tcl-925edaa363d92595b4e1b60552d08fc5f4284c5d.zip tcl-925edaa363d92595b4e1b60552d08fc5f4284c5d.tar.gz tcl-925edaa363d92595b4e1b60552d08fc5f4284c5d.tar.bz2 |
More generation of errorCode information (default [bgerror] and [glob]).
FossilOrigin-Name: a2fcb8020de3acfa3ffabd4a342af8b6f0e12935
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) { |