add the type of the unused class to an error message