Improve error message for unsupported cast between struct and other types #6724
Labels
enhancement
Any new improvement worthy of a entry in the changelog
good first issue
Good for newcomers
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
In general, we have detailed error messages for unsupported casts, such as:
However, the messages for casting between struct and non-struct types does not provide information on the types that were attempted to be cast, making it harder to debug issues.
Describe the solution you'd like
I would like the error message to follow the same format as other unsupported casts:
"Casting from {from_type:?} to {to_type:?} not supported"
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: