summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-11-03 11:08:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-11-03 11:08:20 (GMT)
commitd4d95330eb4e444b9ed5cbdfbad4fa6e887fd2b9 (patch)
tree544fadeed0b36a19c7d51de61efce0a1365c09ab /generic
parent4ac4e5c0f9920027f560c0c6234a8249f8724ec5 (diff)
downloadtcl-d4d95330eb4e444b9ed5cbdfbad4fa6e887fd2b9.zip
tcl-d4d95330eb4e444b9ed5cbdfbad4fa6e887fd2b9.tar.gz
tcl-d4d95330eb4e444b9ed5cbdfbad4fa6e887fd2b9.tar.bz2
* generic/tclCmdMZ.c (TryPostBody): Ensure that errors when setting
* tests/error.test (error-19.1[12]): message/opt capture variables get reflected properly to the caller.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclCmdMZ.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c
index 7690649..fbe8eac 100644
--- a/generic/tclCmdMZ.c
+++ b/generic/tclCmdMZ.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdMZ.c,v 1.214 2010/08/30 14:02:09 msofer Exp $
+ * RCS: @(#) $Id: tclCmdMZ.c,v 1.215 2010/11/03 11:08:21 dkf Exp $
*/
#include "tclInt.h"
@@ -4499,6 +4499,8 @@ TryPostBody(
((Interp *) interp)->cmdFramePtr, 4*i + 5);
handlerFailed:
+ resultObj = Tcl_GetObjResult(interp);
+ Tcl_IncrRefCount(resultObj);
options = During(interp, result, options, NULL);
break;