improve error messages when the download fails