Fixed error reporting with curl downloader