diff options
Diffstat (limited to 'macosx')
-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 } |