Victor Hugo said this quote

The life of the cenobite is a human problem. When we speak of convents, those seats of error but innocence, of mistaken views but good intentions, of ignorance but devotion, of torment but martyrdom, we must nearly always say yes or no...The monastery is a renunciation. Self-sacrifice, even when misdirected, is still self-sacrifice. To assume as duty a strict error has its peculiar grandeur.