summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-05-04 09:45:13 -0400
committerGitHub <noreply@github.com>2019-05-04 09:45:13 -0400
commit8db1b077736e8418c60f2b802dab461be13f189d (patch)
tree663843a4c8ae16ce522e63ca8ca967cffc1ea900 /numpy/core
parent99db160bbecda04399edfc469a30aa4c4c5fa43a (diff)
parent53f6fc668905e90f8c81d5b6db7fae57e72e862e (diff)
downloadnumpy-8db1b077736e8418c60f2b802dab461be13f189d.tar.gz
Merge pull request #13467 from andrewnaguib/patch-1
ENH: extend err msg for too large sequences
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/src/multiarray/conversion_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/conversion_utils.c b/numpy/core/src/multiarray/conversion_utils.c
index fa8de8b37..9afcfd86d 100644
--- a/numpy/core/src/multiarray/conversion_utils.c
+++ b/numpy/core/src/multiarray/conversion_utils.c
@@ -116,8 +116,8 @@ PyArray_IntpConverter(PyObject *obj, PyArray_Dims *seq)
return NPY_FAIL;
}
if (len > NPY_MAXDIMS) {
- PyErr_Format(PyExc_ValueError, "sequence too large; "
- "cannot be greater than %d", NPY_MAXDIMS);
+ PyErr_Format(PyExc_ValueError, "maximum supported dimension for an ndarray is %d"
+ ", found %d", NPY_MAXDIMS, len);
return NPY_FAIL;
}
if (len > 0) {