Fix script to fail on doc error.