no idea what this means, but it looks like in one case you're doing a http.Error and then another case you're just outputting to stdout. is that what you intended?