From 8e74ca0ce7a15c837beaa28f6f605797f0534a7a Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Sat, 1 Aug 2020 22:20:33 +0800 Subject: [PATCH] proxy: also display message on exec error --- proxy/traceroute.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxy/traceroute.go b/proxy/traceroute.go index 9a44ad0..cb206b6 100644 --- a/proxy/traceroute.go +++ b/proxy/traceroute.go @@ -127,8 +127,7 @@ func tracerouteRealHandler(useIPv6 bool, httpW http.ResponseWriter, httpR *http. } if err != nil { httpW.WriteHeader(http.StatusInternalServerError) - httpW.Write([]byte(fmt.Sprintln("traceroute returned error:", err.Error(), ", please check if IPv4/IPv6 is selected correctly."))) - return + httpW.Write([]byte(fmt.Sprintln("traceroute returned error:", err.Error(), "."))) } httpW.Write(result) }