diff options
author | insomniac <insomniac@slackware.it> | 2016-03-20 19:32:37 +0000 |
---|---|---|
committer | insomniac <insomniac@slackware.it> | 2016-03-20 19:32:37 +0000 |
commit | 4e841d1d5aaa68521bb965a66a57fc0ed095c710 (patch) | |
tree | 05e95c4e8a6f71d9437c7ba2a8eef7dce06dbf14 | |
parent | 75228635d9b130f6ef991d018b3f249fdc293b24 (diff) | |
download | fbtracert-4e841d1d5aaa68521bb965a66a57fc0ed095c710.zip fbtracert-4e841d1d5aaa68521bb965a66a57fc0ed095c710.tar.gz fbtracert-4e841d1d5aaa68521bb965a66a57fc0ed095c710.tar.bz2 |
Printing permissions error conditionally
-rw-r--r-- | main.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -610,7 +610,10 @@ func main() { senderDone[ttl-1] = make(chan struct{}) c, err := Sender(senderDone[ttl-1], source, *addrFamily, target, *targetPort, *baseSrcPort, *maxSrcPorts, numIters, ttl, *probeRate, *tosValue) if err != nil { - glog.Fatalf("Failed to start sender for ttl %d, %s\n -- are you running with the correct privileges?", ttl, err) + glog.Errorf("Failed to start sender for ttl %d, %s", ttl, err); + if err.Error() == "operation not permitted" { + glog.Error(" -- are you running with the correct privileges?") + } return } probes = append(probes, c) |