1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-25 00:00:55 +01:00

Improve error message when no servers can be used

This commit is contained in:
Frank Denis 2024-10-30 20:12:55 +01:00
parent 8d43ebf120
commit 55b2ed9851

View File

@ -743,7 +743,7 @@ func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error {
return err
}
if len(proxy.registeredServers) == 0 {
return errors.New("No servers configured")
return errors.New("None of the servers listed in the server_names list was found in the configured sources.")
}
}
if *flags.List || *flags.ListAll {