diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-20T15·49+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-20T15·49+0200 |
commit | beaefdf70648776cf83f80daf146eb774ff4c20c (patch) | |
tree | 192a97588aae0a99ec4ed806717eb0574e2d4f41 /src/libstore/download.cc | |
parent | f12d56b27b9d8ed2411788f24af5b6dc63563568 (diff) |
Tweak
Diffstat (limited to 'src/libstore/download.cc')
-rw-r--r-- | src/libstore/download.cc | 6 |
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) |