Skip to content

Commit

Permalink
Fix bad exception reported by @layus
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jun 9, 2022
1 parent dbe7fce commit baee9fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libfetchers/zip-input-accessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit baee9fe

Please sign in to comment.