Skip to content

Conversation

@nsajko
Copy link
Contributor

@nsajko nsajko commented Nov 7, 2024

No description provided.

@nsajko nsajko changed the title better error message when the constructorof fallback is passed a Union better error message when the constructorof fallback is passed a Union Nov 7, 2024
@rafaqz
Copy link
Member

rafaqz commented Nov 7, 2024

Thanks. Can you think of any downsides or problems with putting throw in a generated function?

The docs manifest will need updating for that to pass. I'm not sure about the invalidations tests.

@aplavin
Copy link
Member

aplavin commented Nov 7, 2024

What are the typical scenarios when this would trigger? If possible, better to add more explanations to the error message – either "Union not supported by this method, please define constructorof(::???) manually" or "Union not supported by constructorof() at all".

@nsajko nsajko closed this Jun 8, 2025
@nsajko nsajko deleted the better_error_message branch June 8, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants