thanks for the patch. Note that SPJ made a more elaborate proposal in the ticket, namely printing the name of the type with the error message. Do you think you can update your ticket to print a message similar to what Simon proposed?
I just checked the API as well, and there does not seem to exist a clean way of getting the unqualified name. But as this is just an error message, I think it’s fine.
Yes you are right. The problem is that this kind of message can't be used in other places. So I was not sure if I should change other functions as well.
On the other hand it would be nice to improve some other error messages since probably sooner or later this will return as new ticket.
How do you think would be better?
Change only function from this ticket description
Change only messages where ADT is expected (4 places) and leave other messages intact.
Try to improve other error messages in this module as well.
Third option will require more work and I'll probably need some help with the message texts.