From be8113e7e92c796e1f3bf858f665dbcb5b9b15eb Mon Sep 17 00:00:00 2001 From: John Lee Date: Tue, 3 Sep 2024 15:07:16 -0400 Subject: [PATCH] Expose error for dnsaddr command --- cmd/algons/dnsaddrCmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/algons/dnsaddrCmd.go b/cmd/algons/dnsaddrCmd.go index c8fb1ac52b..b248c867f2 100644 --- a/cmd/algons/dnsaddrCmd.go +++ b/cmd/algons/dnsaddrCmd.go @@ -141,7 +141,7 @@ var dnsaddrTreeCreateCmd = &cobra.Command{ dnsaddrsFrom := []string{fmt.Sprintf("_dnsaddr.%s", dnsaddrDomain)} entries, err := getEntries(dnsaddrsFrom[0], "TXT") if err != nil { - fmt.Printf("failed fetching entries for %s\n", dnsaddrsFrom[0]) + fmt.Printf("failed fetching entries for %s: %v\n", dnsaddrsFrom[0], err) os.Exit(1) } if len(entries) > 0 {