Skip to content

Commit

Permalink
Make configuration error message more generic
Browse files Browse the repository at this point in the history
Loading a configuration can fail in ways that do not involve a
config file. This removes part of an error message that implies
otherwise.
  • Loading branch information
ugexe committed Jul 7, 2023
1 parent f0334b4 commit 08dce57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/geoipupdate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main

import (
"context"
"fmt"
"log"
"os"

Expand Down Expand Up @@ -48,7 +47,7 @@ func main() {
geoipupdate.WithOutput(args.Output),
)
if err != nil {
fatalLogger(fmt.Sprintf("error loading configuration %s", args.ConfigFile), err)
fatalLogger("error loading configuration", err)
}

if config.Verbose {
Expand Down

0 comments on commit 08dce57

Please sign in to comment.