diff options
author | dkf <dkf@noemail.net> | 2011-04-06 13:05:44 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2011-04-06 13:05:44 (GMT) |
commit | 6dad0c97b49eccfc6dd9fe71b86f00d107df6225 (patch) | |
tree | ee0613bd7e8d75ba4fd80811c1b4aac49b00d308 /macosx/tclMacOSXFCmd.c | |
parent | 2c172f5ae932be65a8e8f813890d3d1a3c02ea7a (diff) | |
download | tcl-6dad0c97b49eccfc6dd9fe71b86f00d107df6225.zip tcl-6dad0c97b49eccfc6dd9fe71b86f00d107df6225.tar.gz tcl-6dad0c97b49eccfc6dd9fe71b86f00d107df6225.tar.bz2 |
More generation of error codes (most platform-specific parts not already using
Tcl_PosixError).
FossilOrigin-Name: 1b095ad294cc30f692b20d00970574897298b030
Diffstat (limited to 'macosx/tclMacOSXFCmd.c')
-rw-r--r-- | macosx/tclMacOSXFCmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/macosx/tclMacOSXFCmd.c b/macosx/tclMacOSXFCmd.c index 717c947..64cbbea 100644 --- a/macosx/tclMacOSXFCmd.c +++ b/macosx/tclMacOSXFCmd.c @@ -200,6 +200,7 @@ TclMacOSXGetFileAttribute( return TCL_OK; #else Tcl_AppendResult(interp, "Mac OS X file attributes not supported", NULL); + Tcl_SetErrorCode(interp, "TCL", "UNSUPPORTED", NULL); return TCL_ERROR; #endif } @@ -329,6 +330,7 @@ TclMacOSXSetFileAttribute( if (newRsrcForkSize != 0) { Tcl_AppendResult(interp, "setting nonzero rsrclength not supported", NULL); + Tcl_SetErrorCode(interp, "TCL", "UNSUPPORTED", NULL); return TCL_ERROR; } @@ -369,6 +371,7 @@ TclMacOSXSetFileAttribute( return TCL_OK; #else Tcl_AppendResult(interp, "Mac OS X file attributes not supported", NULL); + Tcl_SetErrorCode(interp, "TCL", "UNSUPPORTED", NULL); return TCL_ERROR; #endif } |