Better error reporting on findType