aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/download.hh
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-04-21 17:07:07 -0600
committerBen Burdette <bburdette@gmail.com>2020-04-21 17:07:07 -0600
commite4fb9a38493a041861fe5c75bc8ddd129a2e5262 (patch)
tree114bedc4dd31da6ebaf6e9b2ebe5f3d6b7b6d274 /src/libstore/download.hh
parentd3052197feababc312fd874e08ae48050d985eb3 (diff)
remove 'format' from Error constructor calls
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r--src/libstore/download.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh
index 5a131c704..8141928d2 100644
--- a/src/libstore/download.hh
+++ b/src/libstore/download.hh
@@ -128,8 +128,10 @@ class DownloadError : public Error
{
public:
Downloader::Error error;
- DownloadError(Downloader::Error error, const FormatOrString & fs)
- : Error(fs), error(error)
+
+ template<typename... Args>
+ DownloadError(Downloader::Error error, const Args & ... args)
+ : Error(args...), error(error)
{ }
};