[tor-commits] [tor/maint-0.3.5] Fix some error-checking logic and a misleading error message