diff options
author | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-06-16 15:14:11 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-17 22:34:31 +0000 |
commit | 004570a377b2df355064d48afc54375690c3cdb0 (patch) | |
tree | 275f08cee6920ab261bc5c08025f7496bdf0eda9 /src/libstore/filetransfer.hh | |
parent | a835c740ca67e063fe47e7c31444b7c1cac0fe81 (diff) |
Add HTTP responses to FileTransferErrors
Diffstat (limited to 'src/libstore/filetransfer.hh')
-rw-r--r-- | src/libstore/filetransfer.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/filetransfer.hh b/src/libstore/filetransfer.hh index 11dca2fe0..8e31a9e42 100644 --- a/src/libstore/filetransfer.hh +++ b/src/libstore/filetransfer.hh @@ -103,9 +103,10 @@ class FileTransferError : public Error { public: FileTransfer::Error error; + std::shared_ptr<string> response; // intentionally optional template<typename... Args> - FileTransferError(FileTransfer::Error error, const Args & ... args) - : Error(args...), error(error) + FileTransferError(FileTransfer::Error error, std::shared_ptr<string> response, const Args & ... args) + : Error(args...), error(error), response(response) { } }; |