summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-11-05 04:16:07 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-11-05 04:16:07 (GMT)
commit1cfae03f5622dbb21d22217d25c72aa93611ab7b (patch)
treeafcaf45801624d71180fcd45f9be5b0bc4a27bac /generic
parentb245297bd949029c02f962cebe26f139d860e12d (diff)
downloadtcl-1cfae03f5622dbb21d22217d25c72aa93611ab7b.zip
tcl-1cfae03f5622dbb21d22217d25c72aa93611ab7b.tar.gz
tcl-1cfae03f5622dbb21d22217d25c72aa93611ab7b.tar.bz2
* generic/tclStringObj.c: Changed Tcl_ObjPrintf() response to
an invalid format specifier string. No longer panics; now produces an error message as output.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclStringObj.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index f4668d4..2e722c4 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -33,7 +33,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclStringObj.c,v 1.61 2006/11/02 16:57:54 dgp Exp $ */
+ * RCS: @(#) $Id: tclStringObj.c,v 1.62 2006/11/05 04:16:07 dgp Exp $ */
#include "tclInt.h"
#include "tommath.h"
@@ -2456,7 +2456,8 @@ AppendPrintfToObjVA(
Tcl_ListObjGetElements(NULL, list, &objc, &objv);
code = TclAppendFormatToObj(NULL, objPtr, format, objc, objv);
if (code != TCL_OK) {
- Tcl_Panic("Unable to format \"%s\" with supplied arguments: %s",
+ TclAppendPrintfToObj(objPtr,
+ "Unable to format \"%s\" with supplied arguments: %s",
format, Tcl_GetString(list));
}
Tcl_DecrRefCount(list);