diff --git a/tor/search_binary_posix.go b/tor/search_binary_posix.go index 57f0c251..6832ff28 100644 --- a/tor/search_binary_posix.go +++ b/tor/search_binary_posix.go @@ -10,10 +10,7 @@ func isThereConfiguredTorBinary(path string) (b *binary, err error) { } if !filesystemf.IsADirectory(path) { - // We ommit the error here because it's ok while - // we are checking multiple possible paths where - // the Tor binary can be - b, _ = getBinaryForPath(path) + b, err = getBinaryForPath(path) return } diff --git a/tor/search_binary_windows.go b/tor/search_binary_windows.go index 1a9a9fb1..1df67340 100644 --- a/tor/search_binary_windows.go +++ b/tor/search_binary_windows.go @@ -67,16 +67,13 @@ func isThereConfiguredTorBinary(path string) (b *binary, err error) { } if !filesystemf.IsADirectory(path) { - // We ommit the error here because it's ok while - // we are checking multiple possible paths where - // the Tor binary can be - b, _ = getBinaryForPath(path) + b, err = getBinaryForPath(path) return } torExecutablePath, _ := findTorExecutable(path) - b, _ = getBinaryForPath(torExecutablePath) + b, err = getBinaryForPath(torExecutablePath) return }