Update error message for findParentByClass