Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jreisinger committed May 16, 2023
1 parent 30a9d98 commit 0dbcd72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion check/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"crypto/tls"
"encoding/json"
"errors"
"fmt"
"net"
"strings"
"syscall"
Expand Down Expand Up @@ -61,7 +62,7 @@ func Tls(ipaddr net.IP) (checkip.Result, error) {
}
}

return result, newCheckError(err)
return result, newCheckError(fmt.Errorf("connect to %s: %v", address, err))
}
defer conn.Close()

Expand Down

0 comments on commit 0dbcd72

Please sign in to comment.