summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2008-08-23 01:42:52 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2008-08-23 01:42:52 (GMT)
commit94a254e8f66296402989d1c1fae71f7bc0b88f4d (patch)
tree2d582450466cdf7cc0ae6a09747cdf972b898848 /generic
parentff438a1585e89220bba50c88493bee7174377ff9 (diff)
downloadtcl-94a254e8f66296402989d1c1fae71f7bc0b88f4d.zip
tcl-94a254e8f66296402989d1c1fae71f7bc0b88f4d.tar.gz
tcl-94a254e8f66296402989d1c1fae71f7bc0b88f4d.tar.bz2
* generic/tclBasic.c: Set a special COROUTINE_BUSY errorcode
Diffstat (limited to 'generic')
-rw-r--r--generic/tclBasic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 53be9de..d8ab1d0 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.359 2008/08/21 23:57:42 msofer Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.360 2008/08/23 01:42:54 msofer Exp $
*/
#include "tclInt.h"
@@ -8305,6 +8305,7 @@ NRInterpCoroutine(
Tcl_ResetResult(interp);
Tcl_AppendResult(interp, "coroutine \"", Tcl_GetString(objv[0]),
"\" is already running", NULL);
+ Tcl_SetErrorCode(interp, "COROUTINE_BUSY", NULL);
return TCL_ERROR;
}