Improving error messages on failed class introspecting attempt