[tor-commits] [tor/master] control/control: Refactor some error handling code