log URL on error
Reformat if-else in getReleases