From e704b8eeed7fa3490250b875933c82bd845d14e7 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Wed, 19 Nov 2025 01:31:41 +0300 Subject: [PATCH] libstore/filetransfer: Rename writeException -> callbackException --- src/libstore/filetransfer.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc index 0ec822e81..de7c13312 100644 --- a/src/libstore/filetransfer.cc +++ b/src/libstore/filetransfer.cc @@ -168,7 +168,7 @@ struct curlFileTransfer : public FileTransfer std::shared_ptr decompressionSink; std::optional errorSink; - std::exception_ptr writeException; + std::exception_ptr callbackException; size_t writeCallback(void * contents, size_t size, size_t nmemb) noexcept try { @@ -190,7 +190,7 @@ struct curlFileTransfer : public FileTransfer return realSize; } catch (...) { - writeException = std::current_exception(); + callbackException = std::current_exception(); return 0; } @@ -474,7 +474,7 @@ struct curlFileTransfer : public FileTransfer try { decompressionSink->finish(); } catch (...) { - writeException = std::current_exception(); + callbackException = std::current_exception(); } } @@ -483,8 +483,8 @@ struct curlFileTransfer : public FileTransfer httpStatus = 304; } - if (writeException) - failEx(writeException); + if (callbackException) + failEx(callbackException); else if (code == CURLE_OK && successfulStatuses.count(httpStatus)) { result.cached = httpStatus == 304;