summaryrefslogtreecommitdiffstats
path: root/generic/tclEvent.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-04-02 12:17:32 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-04-02 12:17:32 (GMT)
commitf4b7658650c49deb8518bb22558332a16264cdf6 (patch)
tree0e5e3455e80f30f4b9cd842f575ebf50c5cd8fe6 /generic/tclEvent.c
parent4502b1fa0696dd647f8a38b72b8f689433bf98cd (diff)
downloadtcl-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.c2
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) {