summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-28 08:53:51 -0500
committerJeff Carr <[email protected]>2023-03-28 08:53:51 -0500
commitdae59705a1414a861f1de13dfb1e69fe6581c084 (patch)
tree5881c06abc316c400fd6126e927bce41b9893486 /unix.go
parent91787b9121e68620cb589a403c044b40c1ad3d8d (diff)
remove places the app could exitv0.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix.go b/unix.go
index a8eb28b..09635d8 100644
--- a/unix.go
+++ b/unix.go
@@ -24,6 +24,7 @@ func Escalate() {
cmd.Stderr = os.Stderr
err := cmd.Run()
if err != nil {
+ log(logError, "exit in Escalate()")
exit(err)
}
}
@@ -45,7 +46,7 @@ func DumpPublicDNSZone(zone string) {
func dumpIPs(host string) {
ips, err := net.LookupIP(host)
if err != nil {
- exit(err)
+ log(logError, "dumpIPs() failed:", err)
}
for _, ip := range ips {
log(host, ip)