diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-23 15:06:56 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-23 15:06:56 +0000 |
commit | c36916eca0edbbbbaf928405b7e2cc89840eac49 (patch) | |
tree | 1dc93325dfa2f57f23bd937844bbfde1f8ec1aa2 /src/libstore/filetransfer.hh | |
parent | 9423f64ee2b9fe84618e06654fb6b55766b0cf44 (diff) | |
parent | 6fcd9966bf71336107088b218c59477d3f7a874f (diff) |
Merge branch 'misc-ca' of github.com:obsidiansystems/nix into derivation-primop-floating-output
Diffstat (limited to 'src/libstore/filetransfer.hh')
-rw-r--r-- | src/libstore/filetransfer.hh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libstore/filetransfer.hh b/src/libstore/filetransfer.hh index 11dca2fe0..25ade0add 100644 --- a/src/libstore/filetransfer.hh +++ b/src/libstore/filetransfer.hh @@ -103,10 +103,12 @@ 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); + + virtual const char* sname() const override { return "FileTransferError"; } }; bool isUri(const string & s); |