From baee9fe7a2cde88bf089d7342d58f2e17b21a27c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 9 Jun 2022 21:33:13 +0200 Subject: [PATCH] Fix bad exception reported by @layus --- src/libfetchers/zip-input-accessor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libfetchers/zip-input-accessor.cc b/src/libfetchers/zip-input-accessor.cc index ac640dec9..8b820bbf3 100644 --- a/src/libfetchers/zip-input-accessor.cc +++ b/src/libfetchers/zip-input-accessor.cc @@ -79,7 +79,7 @@ struct ZipInputAccessor : InputAccessor std::string readFile(const CanonPath & path) override { if (lstat(path).type != tRegular) - throw Error("file '%s' is not a regular file"); + throw Error("file '%s' is not a regular file", path); return _readFile(path); }