Skip to content

Commit

Permalink
Better error message when unable to reverse lookup an IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
oxtoacart committed May 17, 2023
1 parent 42d8081 commit eeb56a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internalsdk/android.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ func run(configDir, locale string,
}
updatedHost, ok := grabber.ReverseLookup(ip)
if !ok {
return "", errors.New("invalid IP address")
return "", errors.New("unknown IP address %v", ip)
}
if splitErr != nil {
return updatedHost, nil
Expand Down

0 comments on commit eeb56a0

Please # to comment.