Better error report#1965
Conversation
|
This job merely had a timeout, could someone with privileges please restart it? |
|
I would consider an error message like that, but only if compiled in debug mode. (Analogous to other uses of fancy string manipulation throughout the library, which include a note of the sort " (please recompile in debug mode for more details)". This is to avoid code bloat.) |
|
build restarted. |
|
Ok, makes sense. My solution is still not perfect though, because the type name reported is without qualifiers, eq. Keeping the qualifiers will be a more involved patch, which seems better suited for a separate PR. |
|
This version now only prints the type name in a debug build. |
|
Looks good, thanks! Regarding getting the extra flags: I think the easiest and most cross-platform way is to wrap the type |
This adds better error messages when py::cast is not used correctly.