home/config: improve error message

This commit is contained in:
Ishan Jain 2023-11-23 13:39:11 +05:30
parent 1320043e95
commit 4530b83c2d
No known key found for this signature in database
GPG key ID: 0506DB2A1CC75C27

View file

@ -463,7 +463,7 @@ func validateBindHosts(conf *configuration) (err error) {
for i, addr := range conf.DNS.BindHosts { for i, addr := range conf.DNS.BindHosts {
if !addr.IsValid() { 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)
} }
} }