Improve error reporting for downloads