Fix bad exception reported by @layus

This commit is contained in:
Eelco Dolstra 2022-06-09 21:33:13 +02:00
parent dbe7fcebff
commit baee9fe7a2
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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);
}