Skip to content

Commit

Permalink
improve maxmind error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jreisinger committed Apr 8, 2022
1 parent f395c7f commit a8c4d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check/maxmind.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func MaxMind(ip net.IP) (checkip.Result, error) {

db, err := geoip2.Open(file)
if err != nil {
return result, newCheckError(fmt.Errorf("can't load DB file: %v", err))
return result, newCheckError(fmt.Errorf("can't load DB file %s: %v", file, err))
}
defer db.Close()

Expand Down

0 comments on commit a8c4d61

Please sign in to comment.