improve error message of object=?