diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-04-04 20:17:32 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-04-04 20:17:32 (GMT) |
commit | b9577734a90693fc104024f0d014669143ca4aee (patch) | |
tree | f05c15ad8e6d97eff31aa2a0fd6a64dc4833a7ac /generic | |
parent | b2dd504f006f7371bb8e1b7c508bedbb32126621 (diff) | |
download | tcl-b9577734a90693fc104024f0d014669143ca4aee.zip tcl-b9577734a90693fc104024f0d014669143ca4aee.tar.gz tcl-b9577734a90693fc104024f0d014669143ca4aee.tar.bz2 |
Test _before_ commit, not after...
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCmdIL.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c index a6af227..0a2784d 100644 --- a/generic/tclCmdIL.c +++ b/generic/tclCmdIL.c @@ -4254,7 +4254,7 @@ SortCompare( Tcl_ResetResult(infoPtr->interp); Tcl_AppendResult(infoPtr->interp, "-compare command returned non-integer result", NULL); - Tcl_SetErrorCode(interp, "TCL", "OPERATION", "LSORT", + Tcl_SetErrorCode(infoPtr->interp, "TCL", "OPERATION", "LSORT", "COMPARISONFAILED", NULL); infoPtr->resultCode = TCL_ERROR; return 0; @@ -4472,7 +4472,7 @@ SelectObjFromSublist( Tcl_AppendResult(infoPtr->interp, "element ", buffer, " missing from sublist \"", TclGetString(objPtr), "\"", NULL); - Tcl_SetErrorCode(interp, "TCL", "OPERATION", "LSORT", + Tcl_SetErrorCode(infoPtr->interp, "TCL", "OPERATION", "LSORT", "INDEXFAILED", NULL); infoPtr->resultCode = TCL_ERROR; return NULL; |