Skip to content

Commit

Permalink
fix #653: 1 status code on any error
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Nov 12, 2022
1 parent 1aa464b commit efcdea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bincommon/commonflags.go
Expand Up @@ -152,7 +152,7 @@ func FetchURL(o *fhttp.HTTPOptions) {
client, _ := fhttp.NewClient(o)
// big gotcha that nil client isn't nil interface value (!)
if client == nil || reflect.ValueOf(client).IsNil() {
return // error logged already
os.Exit(1) // error logged already
}
code, data, header := client.Fetch()
log.LogVf("Fetch result code %d, data len %d, headerlen %d", code, len(data), header)
Expand Down

0 comments on commit efcdea0

Please sign in to comment.