diff options
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) |