[Downloader] ensure that a downloader failure results in a DownloaderError so the Downloader can catch it

Helpful for https://github.com/CocoaPods/cocoapods-downloader/pull/36