diff options
author | dkf <dkf@noemail.net> | 2012-08-05 12:09:12 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2012-08-05 12:09:12 (GMT) |
commit | 45ffe640dc213976a50d32490eb7ba8fa026ef31 (patch) | |
tree | abf0fe6884e78232b9fa8bb36a11d16458869c8a /unix/tclUnixFile.c | |
parent | 7c287d69d856d3ff49956e5d4a48d2ed698b418c (diff) | |
download | tcl-45ffe640dc213976a50d32490eb7ba8fa026ef31.zip tcl-45ffe640dc213976a50d32490eb7ba8fa026ef31.tar.gz tcl-45ffe640dc213976a50d32490eb7ba8fa026ef31.tar.bz2 |
Final part of result generation conversion (modulo any minor blunders)
FossilOrigin-Name: 1fb35ca910ce286ab4f7cc7f304d120bed86723b
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r-- | unix/tclUnixFile.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index c213050..01fc6fe 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -310,10 +310,9 @@ TclpMatchInDirectory( if (d == NULL) { Tcl_DStringFree(&ds); if (interp != NULL) { - Tcl_ResetResult(interp); - Tcl_AppendResult(interp, "couldn't read directory \"", - Tcl_DStringValue(&dsOrig), "\": ", - Tcl_PosixError(interp), NULL); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "couldn't read directory \"%s\": %s", + Tcl_DStringValue(&dsOrig), Tcl_PosixError(interp))); } Tcl_DStringFree(&dsOrig); Tcl_DecrRefCount(fileNamePtr); @@ -771,9 +770,9 @@ TclpGetCwd( #endif { if (interp != NULL) { - Tcl_AppendResult(interp, - "error getting working directory name: ", - Tcl_PosixError(interp), NULL); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "error getting working directory name: %s", + Tcl_PosixError(interp))); } return NULL; } |