Test it against doctrine and scripture of course.
So what you're saying, if I'm reading this correctly, is that the pope, the vicar of Christ, can make an error in doctrine????