diff --git a/net/ping/ping_windows.go b/net/ping/ping_windows.go index ee30e85..510f76b 100644 --- a/net/ping/ping_windows.go +++ b/net/ping/ping_windows.go @@ -20,7 +20,7 @@ func Ping(destination string, options *PingOptions) (*PingResult, error) { pCmd := exec.Command("cmd.exe", params...) output, err := pCmd.CombinedOutput() if err != nil { - return "", err + return nil, err } return parseWindowsPing(output)