diff --git a/cmd/update-useragent/main.go b/cmd/update-useragent/main.go index e3b6ba1..2f2a61b 100644 --- a/cmd/update-useragent/main.go +++ b/cmd/update-useragent/main.go @@ -23,6 +23,9 @@ func main() { flag.Parse() userAgents := getUserAgents() + if len(userAgents) == 0 { + log.Fatal("Couldn't get user agents. The user agent data will remain unchanged.") + } data, err := json.Marshal(userAgents) if err != nil { log.Fatal(err)