microsoft/winmd

Error messages regarding unresolved typeref for custom attribute params doesn't include the details of the type

Closed this issue · 1 comments

impl::throw_invalid("CustomAttribute named param referenced unresolved enum type");

This is a simple string that says "something" went wrong and I'm not gonna tell ya. Na na nan na nana!

This sort of thing is frustrating for a user as they have no clue what it is referring to. All the information should be there in the code to form a much better message that includes the FQN for the unresolved type, it should also have the module reference to identify what module the type is supposed to come from. This would make resolving such errors WAY easier.

Note that this winmd parser is no longer under active development and mostly serves as an implementation detail of https://github.com/microsoft/cppwinrt but feel free to contribute such an improvement.