From 4ed2187377bb915c0eac7f93f20afa3d16f79a5d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 9 Apr 2015 12:49:13 +0200 Subject: Use cached result if there is a network error --- src/libexpr/download.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libexpr/download.cc') diff --git a/src/libexpr/download.cc b/src/libexpr/download.cc index 050e8d69c710..b23e3196706f 100644 --- a/src/libexpr/download.cc +++ b/src/libexpr/download.cc @@ -100,7 +100,7 @@ struct Curl CURLcode res = curl_easy_perform(curl); if (res == CURLE_WRITE_ERROR && etag == expectedETag) return false; if (res != CURLE_OK) - throw Error(format("unable to download ‘%1%’: %2% (%3%)") + throw DownloadError(format("unable to download ‘%1%’: %2% (%3%)") % url % curl_easy_strerror(res) % res); long httpStatus = 0; -- cgit 1.4.1