Skip to content

Commit

Permalink
Simplify fatal logging
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Jul 12, 2023
1 parent 1658177 commit ea2631f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/geoipupdate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ func main() {
geoipupdate.WithOutput(args.Output),
)
if err != nil {
log.Printf("Error loading configuration: %s", err)
os.Exit(1)
log.Fatalf("Error loading configuration: %s", err)
}

if config.Verbose {
Expand All @@ -53,7 +52,6 @@ func main() {

client := geoipupdate.NewClient(config)
if err = client.Run(context.Background()); err != nil {
log.Printf("Error retrieving updates: %s", err)
os.Exit(1)
log.Fatalf("Error retrieving updates: %s", err)
}
}

0 comments on commit ea2631f

Please sign in to comment.