about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-20T15·49+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-20T15·49+0200
commitbeaefdf70648776cf83f80daf146eb774ff4c20c (patch)
tree192a97588aae0a99ec4ed806717eb0574e2d4f41 /src/libstore
parentf12d56b27b9d8ed2411788f24af5b6dc63563568 (diff)
Tweak
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/download.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc
index 34cb8ed607bc..d7d0e29c0626 100644
--- a/src/libstore/download.cc
+++ b/src/libstore/download.cc
@@ -98,11 +98,7 @@ struct CurlDownloader : public Downloader
         {
             assert(!done);
             done = true;
-            try {
-                throw e;
-            } catch (...) {
-                callFailure(failure);
-            }
+            callFailure(failure, std::make_exception_ptr(e));
         }
 
         size_t writeCallback(void * contents, size_t size, size_t nmemb)