summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Mariasis <ericmariasis829@gmail.com>2020-02-01 08:56:11 -0500
committerGitHub <noreply@github.com>2020-02-01 08:56:11 -0500
commitb7e53b3c50e036e3621ad97d19ca278712c528ab (patch)
treeccfd75bbb09d1fd18070580aff86b15c2975edc2
parentdfb2d340eab1abdb92b2e5d7758661db30f51a32 (diff)
downloadnumpy-b7e53b3c50e036e3621ad97d19ca278712c528ab.tar.gz
Update numpy/core/src/multiarray/descriptor.c
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
-rw-r--r--numpy/core/src/multiarray/descriptor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c
index ecb1db1bd..3b5c19211 100644
--- a/numpy/core/src/multiarray/descriptor.c
+++ b/numpy/core/src/multiarray/descriptor.c
@@ -443,7 +443,7 @@ _convert_from_array_descr(PyObject *obj, int align)
else if (PyTuple_Check(name)) {
if (PyTuple_GET_SIZE(name) != 2) {
PyErr_Format(PyExc_TypeError,
- "If a tuple, the first element of a field tuple must have two elements, has [%d] elements",
+ "If a tuple, the first element of a field tuple must have two elements, not %d",
PyTuple_GET_SIZE(name));
goto fail;
}