summaryrefslogtreecommitdiffstats
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
parentff438a1585e89220bba50c88493bee7174377ff9 (diff)
downloadtcl-94a254e8f66296402989d1c1fae71f7bc0b88f4d.zip
tcl-94a254e8f66296402989d1c1fae71f7bc0b88f4d.tar.gz
tcl-94a254e8f66296402989d1c1fae71f7bc0b88f4d.tar.bz2
* generic/tclBasic.c: Set a special COROUTINE_BUSY errorcode
-rw-r--r--ChangeLog4
-rw-r--r--generic/tclBasic.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c2010dc..29ac32c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-22 Miguel Sofer <msofer@users.sf.net>
+
+ * generic/tclBasic.c: Set a special COROUTINE_BUSY errorcode
+
2008-08-22 Don Porter <dgp@users.sourceforge.net>
*** 8.6a2 TAGGED FOR RELEASE ***
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;
}