mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Add HTTP responses to FileTransferErrors
This commit is contained in:
parent
a835c740ca
commit
004570a377
2 changed files with 23 additions and 8 deletions
|
@ -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)
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue