diff options
author | Nathan Goldbaum <nathan.goldbaum@gmail.com> | 2023-02-17 13:15:56 -0700 |
---|---|---|
committer | Nathan Goldbaum <nathan.goldbaum@gmail.com> | 2023-02-17 13:15:56 -0700 |
commit | cae4b64361393746982eae3ccbf551750f4021cd (patch) | |
tree | d0cf5aa381ac31be661eaef1741de3da7ac5f99d | |
parent | 5db543e7acf8f45e55af104b0ae139d4475c7224 (diff) | |
download | numpy-cae4b64361393746982eae3ccbf551750f4021cd.tar.gz |
MAINT: Add debug information to ufunc wrapping error
-rw-r--r-- | numpy/core/src/umath/wrapping_array_method.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/src/umath/wrapping_array_method.c b/numpy/core/src/umath/wrapping_array_method.c index 1121142ae..64fea7aeb 100644 --- a/numpy/core/src/umath/wrapping_array_method.c +++ b/numpy/core/src/umath/wrapping_array_method.c @@ -268,8 +268,9 @@ PyUFunc_AddWrappingLoop(PyObject *ufunc_obj, break; } if (wrapped_meth == NULL) { - PyErr_SetString(PyExc_TypeError, - "Did not find the to-be-wrapped loop in the ufunc."); + PyErr_Format(PyExc_TypeError, + "Did not find the to-be-wrapped loop in the ufunc with given " + "DTypes. Received wrapping types: %S", wrapped_dt_tuple); goto finish; } |