about summary refs log tree commit diff
path: root/src/libexpr/download.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-04-09T10·49+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-04-09T10·49+0200
commit4ed2187377bb915c0eac7f93f20afa3d16f79a5d (patch)
tree5742d0b717f424c7ccd4402def7a5cce8a721509 /src/libexpr/download.hh
parent1fc905ad4c6320d7625d7f9bec06e70531bb0d5f (diff)
Use cached result if there is a network error
Diffstat (limited to 'src/libexpr/download.hh')
-rw-r--r--src/libexpr/download.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/download.hh b/src/libexpr/download.hh
index aa4fd5083d4e..65396e5de329 100644
--- a/src/libexpr/download.hh
+++ b/src/libexpr/download.hh
@@ -13,4 +13,6 @@ struct DownloadResult
 
 DownloadResult downloadFile(string url, string expectedETag = "");
 
+MakeError(DownloadError, Error)
+
 }