implicitly_convertible discards conversion error #5517
petersteneteg
started this conversation in
Ideas
Replies: 1 comment
-
I guess the main problem is that we might try a bunch of conversions and other stuff.. so we might not be sure what error to give... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
When a implicitly_convertible fails the error is discarded here:
pybind11/include/pybind11/pybind11.h
Lines 2668 to 2672 in 31d7c87
And a "generic" conversion error is later reported here:
pybind11/include/pybind11/cast.h
Lines 1167 to 1169 in 31d7c87
Would it be possible to save the initial error and provide that information in the final message?
Beta Was this translation helpful? Give feedback.
All reactions