handle errors in getObjectInfo