summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-12-11 23:47:19 -0800
committerEric Wieser <wieser.eric@gmail.com>2017-12-11 23:47:19 -0800
commitb94e536f8ac873a2930dcc462a83b80d648360df (patch)
treeda0b7e0ae0e080f53bf7a02311446e03c077125e
parent8032cf4762008155fca610fb61092e6c9ecae98b (diff)
downloadnumpy-b94e536f8ac873a2930dcc462a83b80d648360df.tar.gz
MAINT: Improve error message for void(-1)
Fixes gh-7263
-rw-r--r--numpy/core/src/multiarray/scalartypes.c.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/scalartypes.c.src b/numpy/core/src/multiarray/scalartypes.c.src
index f1329e066..f9af33491 100644
--- a/numpy/core/src/multiarray/scalartypes.c.src
+++ b/numpy/core/src/multiarray/scalartypes.c.src
@@ -3071,7 +3071,7 @@ void_arrtype_new(PyTypeObject *type, PyObject *args, PyObject *NPY_UNUSED(kwds))
if (PyErr_Occurred() || (memu > NPY_MAX_INT)) {
PyErr_Clear();
PyErr_Format(PyExc_OverflowError,
- "size cannot be greater than %d",
+ "size must be non-negative and not greater than %d",
(int) NPY_MAX_INT);
return NULL;
}