summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2023-02-22 19:25:39 -0500
committerGitHub <noreply@github.com>2023-02-22 19:25:39 -0500
commit32b8ffe9be5ab0b4eeea78f1908d9d2120e3cfc1 (patch)
tree70b6db680875fc368a31a0d362054cf62316f8cb /numpy/core/src
parent731921799137d2d1c4194f498732f70b45f82036 (diff)
parent6d4111f9d09e0b42425abb80c42a0fe86dbac955 (diff)
downloadnumpy-32b8ffe9be5ab0b4eeea78f1908d9d2120e3cfc1.tar.gz
Merge pull request #23261 from ngoldbaum/nditer-error-tweak
MAINT: use full flag name in nditer constructor error
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/multiarray/nditer_constr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/nditer_constr.c b/numpy/core/src/multiarray/nditer_constr.c
index 6ae098356..dfa84c51c 100644
--- a/numpy/core/src/multiarray/nditer_constr.c
+++ b/numpy/core/src/multiarray/nditer_constr.c
@@ -1121,7 +1121,8 @@ npyiter_prepare_one_operand(PyArrayObject **op,
NPY_ITEM_IS_POINTER))) != 0)) {
PyErr_SetString(PyExc_TypeError,
"Iterator operand or requested dtype holds "
- "references, but the REFS_OK flag was not enabled");
+ "references, but the NPY_ITER_REFS_OK flag was not "
+ "enabled");
return 0;
}
}