mirror of
https://github.com/Luzifer/rootzone.git
synced 2024-11-08 16:00:10 +00:00
Check for template errors
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7f8ff7b6e4
commit
11b42dce56
1 changed files with 4 additions and 2 deletions
6
main.go
6
main.go
|
@ -99,10 +99,12 @@ func main() {
|
||||||
log.WithError(err).Fatal("Unable to parse template")
|
log.WithError(err).Fatal("Unable to parse template")
|
||||||
}
|
}
|
||||||
|
|
||||||
tpl.Execute(os.Stdout, map[string]interface{}{
|
if err := tpl.Execute(os.Stdout, map[string]interface{}{
|
||||||
"roots": rootServers,
|
"roots": rootServers,
|
||||||
"version": version,
|
"version": version,
|
||||||
})
|
}); err != nil {
|
||||||
|
log.WithError(err).Fatal("Unable to generate stub file")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func setRootsFromTLDs(roots map[string][]string, rootsMutex *sync.Mutex, tlds []string, filter []string, resolver func(string) ([]string, error), wg *sync.WaitGroup, cLimiter chan struct{}) {
|
func setRootsFromTLDs(roots map[string][]string, rootsMutex *sync.Mutex, tlds []string, filter []string, resolver func(string) ([]string, error), wg *sync.WaitGroup, cLimiter chan struct{}) {
|
||||||
|
|
Loading…
Reference in a new issue