diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-04-03 06:05:13 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-04-03 06:05:13 (GMT) |
commit | 2205a28b9e00ec29977d2b21e2f2bda3b77aaaf4 (patch) | |
tree | 261625244d376d9a2c2415ce97c8a93bdc2304f6 /generic/tclResult.c | |
parent | fcf7bbf6ec9bc4d484960cf51acdab44bca2683a (diff) | |
download | tcl-2205a28b9e00ec29977d2b21e2f2bda3b77aaaf4.zip tcl-2205a28b9e00ec29977d2b21e2f2bda3b77aaaf4.tar.gz tcl-2205a28b9e00ec29977d2b21e2f2bda3b77aaaf4.tar.bz2 |
More generation of error codes (namespace creation, path normalization,
pipeline creation, package handling, procedures, [scan] formats)
Diffstat (limited to 'generic/tclResult.c')
-rw-r--r-- | generic/tclResult.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c index fad3b82..6a71ee2 100644 --- a/generic/tclResult.c +++ b/generic/tclResult.c @@ -1487,9 +1487,10 @@ TclMergeReturnOptions( */ Tcl_ResetResult(interp); Tcl_AppendResult(interp, "bad -errorstack value: " - "expected a list but got \"", - TclGetString(valuePtr), "\"", NULL); - Tcl_SetErrorCode(interp, "TCL", "RESULT", "NONLIST_ERRORSTACK", NULL); + "expected a list but got \"", TclGetString(valuePtr), + "\"", NULL); + Tcl_SetErrorCode(interp, "TCL", "RESULT", "NONLIST_ERRORSTACK", + NULL); goto error; } if (length % 2) { @@ -1497,9 +1498,11 @@ TclMergeReturnOptions( * Errorstack must always be an even-sized list */ Tcl_ResetResult(interp); - Tcl_AppendResult(interp, "forbidden odd-sized list for -errorstack: \"", - TclGetString(valuePtr), "\"", NULL); - Tcl_SetErrorCode(interp, "TCL", "RESULT", "ODDSIZEDLIST_ERRORSTACK", NULL); + Tcl_AppendResult(interp, + "forbidden odd-sized list for -errorstack: \"", + TclGetString(valuePtr), "\"", NULL); + Tcl_SetErrorCode(interp, "TCL", "RESULT", + "ODDSIZEDLIST_ERRORSTACK", NULL); goto error; } } |