diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-03 10:56:28 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-03 10:56:28 (GMT) |
commit | c525f5049c4f7698eff261177a56da0fea9620c6 (patch) | |
tree | 75be1366adc438a7d2ef0f75fc7c2ffe414d7872 /generic/tclCmdAH.c | |
parent | bc7cee752da36301f1478e54749f8e6b4a8d8b3e (diff) | |
download | tcl-c525f5049c4f7698eff261177a56da0fea9620c6.zip tcl-c525f5049c4f7698eff261177a56da0fea9620c6.tar.gz tcl-c525f5049c4f7698eff261177a56da0fea9620c6.tar.bz2 |
converting to using Tcl_Obj API for error message generation; part done
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r-- | generic/tclCmdAH.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index f09ee70..4bb993e 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -1842,7 +1842,7 @@ PathFilesystemCmd( } fsInfo = Tcl_FSFileSystemInfo(objv[1]); if (fsInfo == NULL) { - Tcl_SetResult(interp, "unrecognised path", TCL_STATIC); + Tcl_SetObjResult(interp, Tcl_NewStringObj("unrecognised path", -1)); Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "FILESYSTEM", Tcl_GetString(objv[1]), NULL); return TCL_ERROR; @@ -2092,7 +2092,8 @@ FilesystemSeparatorCmd( Tcl_Obj *separatorObj = Tcl_FSPathSeparator(objv[1]); if (separatorObj == NULL) { - Tcl_SetResult(interp, "unrecognised path", TCL_STATIC); + Tcl_SetObjResult(interp, Tcl_NewStringObj( + "unrecognised path", -1)); Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "FILESYSTEM", Tcl_GetString(objv[1]), NULL); return TCL_ERROR; |