1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Clarify "must end with a (.)" error message.

This commit is contained in:
Tom Limoncelli
2017-08-18 15:50:55 -04:00
parent d15ef9f1a3
commit 5cf482e8e8
2 changed files with 31 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ func checkTarget(target string) error {
}
// If it containts a ".", it must end in a ".".
if strings.ContainsRune(target, '.') && target[len(target)-1] != '.' {
return fmt.Errorf("target (%v) must end with a (.) [Required if target is not single label]", target)
return fmt.Errorf("target (%v) must end with a (.) [https://stackexchange.github.io/dnscontrol/why-the-dot]", target)
}
return nil
}