diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-18 14:48:45 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-18 14:48:45 +0000 |
commit | 74b219ef6e5e171c56c8ad7385969e0d0df09ed8 (patch) | |
tree | 1fe9ff28305204c1762ded424a35409d72e24344 /src/libstore/filetransfer.hh | |
parent | 004570a377b2df355064d48afc54375690c3cdb0 (diff) |
Adjust FileTransferError message to use opt response
Diffstat (limited to 'src/libstore/filetransfer.hh')
-rw-r--r-- | src/libstore/filetransfer.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstore/filetransfer.hh b/src/libstore/filetransfer.hh index 8e31a9e42..25ade0add 100644 --- a/src/libstore/filetransfer.hh +++ b/src/libstore/filetransfer.hh @@ -104,10 +104,11 @@ class FileTransferError : public Error public: FileTransfer::Error error; std::shared_ptr<string> response; // intentionally optional + template<typename... Args> - FileTransferError(FileTransfer::Error error, std::shared_ptr<string> response, const Args & ... args) - : Error(args...), error(error), response(response) - { } + 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); |