diff options
author | dkf <dkf@noemail.net> | 2011-04-03 06:05:13 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2011-04-03 06:05:13 (GMT) |
commit | db0dc9c87d402903e79d5bc5fdb790127623a87c (patch) | |
tree | 261625244d376d9a2c2415ce97c8a93bdc2304f6 /generic/tclPathObj.c | |
parent | 4b09812b926bfe3c28867ab15e270b09ddbbed01 (diff) | |
download | tcl-db0dc9c87d402903e79d5bc5fdb790127623a87c.zip tcl-db0dc9c87d402903e79d5bc5fdb790127623a87c.tar.gz tcl-db0dc9c87d402903e79d5bc5fdb790127623a87c.tar.bz2 |
More generation of error codes (namespace creation, path normalization,
pipeline creation, package handling, procedures, [scan] formats)
FossilOrigin-Name: a6c95ed9e060d601f5fecd29fdadf14567d377ff
Diffstat (limited to 'generic/tclPathObj.c')
-rw-r--r-- | generic/tclPathObj.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c index 81007a2..01a297b 100644 --- a/generic/tclPathObj.c +++ b/generic/tclPathObj.c @@ -1523,6 +1523,8 @@ TclFSMakePathFromNormalized( Tcl_ResetResult(interp); Tcl_AppendResult(interp, "can't find object" "string representation", NULL); + Tcl_SetErrorCode(interp, "TCL", "VALUE", "PATH", "WTF", + NULL); } return TCL_ERROR; } @@ -2423,6 +2425,8 @@ SetFsPathFromAny( Tcl_ResetResult(interp); Tcl_AppendResult(interp, "couldn't find HOME environment " "variable to expand path", NULL); + Tcl_SetErrorCode(interp, "TCL", "VALUE", "PATH", + "HOMELESS", NULL); } return TCL_ERROR; } @@ -2440,6 +2444,8 @@ SetFsPathFromAny( Tcl_ResetResult(interp); Tcl_AppendResult(interp, "user \"", name+1, "\" doesn't exist", NULL); + Tcl_SetErrorCode(interp, "TCL", "VALUE", "PATH", "NOUSER", + NULL); } Tcl_DStringFree(&temp); if (split != len) { |