diff options
Diffstat (limited to 'Objects/unicodeobject.c')
| -rw-r--r-- | Objects/unicodeobject.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index a297cac..5ee72bd 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5067,8 +5067,9 @@ PyObject *PyUnicode_Format(PyObject *format, default: PyErr_Format(PyExc_ValueError, - "unsupported format character '%c' (0x%x)", - c, c); + "unsupported format character '%c' (0x%x) " + "at index %i", + c, c, fmt -1 - PyUnicode_AS_UNICODE(uformat)); goto onError; } if (sign) { |
