From 4530b83c2d6971bb27e4cf7621906372ed35d303 Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Thu, 23 Nov 2023 13:39:11 +0530 Subject: [PATCH] home/config: improve error message --- internal/home/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/home/config.go b/internal/home/config.go index e78bf8e9..7c96cee6 100644 --- a/internal/home/config.go +++ b/internal/home/config.go @@ -463,7 +463,7 @@ func validateBindHosts(conf *configuration) (err error) { for i, addr := range conf.DNS.BindHosts { if !addr.IsValid() { - return fmt.Errorf("dns.bind_hosts at index %d is not a valid ip address", i) + return fmt.Errorf("dns.bind_hosts at index %d with value '%s' is not a valid ip address. try quoting the value", i, addr) } }