diff options
author | dkf <dkf@noemail.net> | 2012-07-23 13:59:40 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2012-07-23 13:59:40 (GMT) |
commit | db0b8cc05b59328e7eacfb833b975f732be99327 (patch) | |
tree | 46a3064598e4a36c7ca561f9c08f5d22de4b2b9e /generic/tkColor.c | |
parent | 0818005fbf7d6865ab4bdd2c4f2e6695d821823a (diff) | |
download | tk-db0b8cc05b59328e7eacfb833b975f732be99327.zip tk-db0b8cc05b59328e7eacfb833b975f732be99327.tar.gz tk-db0b8cc05b59328e7eacfb833b975f732be99327.tar.bz2 |
Much more cleaning up of result handling.
FossilOrigin-Name: 016ad9dac31d39cbc9ded6a6e8e75c11618318a8
Diffstat (limited to 'generic/tkColor.c')
-rw-r--r-- | generic/tkColor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkColor.c b/generic/tkColor.c index b1ed4f1..1bfb037 100644 --- a/generic/tkColor.c +++ b/generic/tkColor.c @@ -224,12 +224,12 @@ Tk_GetColor( if (tkColPtr == NULL) { if (interp != NULL) { if (*name == '#') { - Tcl_AppendResult(interp, "invalid color name \"", name, - "\"", NULL); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "invalid color name \"%s\"", name)); Tcl_SetErrorCode(interp, "TK", "VALUE", "COLOR", NULL); } else { - Tcl_AppendResult(interp, "unknown color name \"", name, - "\"", NULL); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "unknown color name \"%s\"", name)); Tcl_SetErrorCode(interp, "TK", "LOOKUP", "COLOR", name, NULL); } } |