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