wrong error when wrong object types

git-svn-id: https://svn.internet2.edu/svn/i2mi/trunk@9093 bc24b658-cf39-4249-b827-e3526eaaeb42