improve error messages when the download fails

This pull request addresses #48.
I don't like mixing single and double quotes in the same `sprintf()`. Moreover there is a white space at the end of this sentence that may be deleted.