Improve error message when downloading an incomplete file