summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2006-11-05 04:16:07 (GMT)
committerdgp@users.sourceforge.net <dgp>2006-11-05 04:16:07 (GMT)
commit2ee5d9d0810282ceeb79a3e61bdc1c2079390f1f (patch)
treeafcaf45801624d71180fcd45f9be5b0bc4a27bac /generic/tclStringObj.c
parent954f38d22e0fbc3b7dae1563e0ae9ddfbf279add (diff)
downloadtcl-2ee5d9d0810282ceeb79a3e61bdc1c2079390f1f.zip
tcl-2ee5d9d0810282ceeb79a3e61bdc1c2079390f1f.tar.gz
tcl-2ee5d9d0810282ceeb79a3e61bdc1c2079390f1f.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/tclStringObj.c')
-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);