more helpful error message for unresolvable type