diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc index de7c13312..221e162a6 100644 --- a/src/libstore/filetransfer.cc +++ b/src/libstore/filetransfer.cc @@ -300,6 +300,7 @@ struct curlFileTransfer : public FileTransfer } catch (EndOfFile &) { return 0; } catch (...) { + callbackException = std::current_exception(); return CURL_READFUNC_ABORT; } @@ -331,6 +332,7 @@ struct curlFileTransfer : public FileTransfer } return CURL_SEEKFUNC_OK; } catch (...) { + callbackException = std::current_exception(); return CURL_SEEKFUNC_FAIL; }