diff options
| author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-04-06 13:05:44 (GMT) | 
|---|---|---|
| committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-04-06 13:05:44 (GMT) | 
| commit | a6cc2f3c23ebe5374eabe590cb06cb4c4b419dbc (patch) | |
| tree | ee0613bd7e8d75ba4fd80811c1b4aac49b00d308 /unix/tclUnixFCmd.c | |
| parent | 5e4e04d0e675c6fa2f437398bcdcab674c0cbd04 (diff) | |
| download | tcl-a6cc2f3c23ebe5374eabe590cb06cb4c4b419dbc.zip tcl-a6cc2f3c23ebe5374eabe590cb06cb4c4b419dbc.tar.gz tcl-a6cc2f3c23ebe5374eabe590cb06cb4c4b419dbc.tar.bz2 | |
More generation of error codes (most platform-specific parts not already using
Tcl_PosixError).
Diffstat (limited to 'unix/tclUnixFCmd.c')
| -rw-r--r-- | unix/tclUnixFCmd.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c index c71ccd0..e3d9022 100644 --- a/unix/tclUnixFCmd.c +++ b/unix/tclUnixFCmd.c @@ -1483,6 +1483,8 @@ SetGroupAttribute(  		Tcl_AppendResult(interp, "could not set group for file \"",  			TclGetString(fileName), "\": group \"", string,  			"\" does not exist", NULL); +		Tcl_SetErrorCode(interp, "TCL", "OPERATION", "SETGRP", +			"NO_GROUP", NULL);  	    }  	    return TCL_ERROR;  	} @@ -1547,6 +1549,8 @@ SetOwnerAttribute(  		Tcl_AppendResult(interp, "could not set owner for file \"",  			TclGetString(fileName), "\": user \"", string,  			"\" does not exist", NULL); +		Tcl_SetErrorCode(interp, "TCL", "OPERATION", "SETOWN", +			"NO_USER", NULL);  	    }  	    return TCL_ERROR;  	} @@ -1640,6 +1644,7 @@ SetPermissionsAttribute(  	    if (interp != NULL) {  		Tcl_AppendResult(interp, "unknown permission string format \"",  			modeStringPtr, "\"", NULL); +		Tcl_SetErrorCode(interp, "TCL", "VALUE", "PERMISSION", NULL);  	    }  	    return TCL_ERROR;  	} | 
