Add better error message for protected method
Changes from review