1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Merge pull request #14176 from NixOS/backport-14168-to-2.30-maintenance

[Backport 2.30-maintenance] libutil: Throw if `str("contents")` not found
This commit is contained in:
internal-nix-ci[bot] 2025-10-07 22:29:34 +00:00 committed by GitHub
commit 38927ae9c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -187,8 +187,10 @@ static void parse(FileSystemObjectSink & sink, Source & source, const CanonPath
tag = getString();
}
if (tag == "contents")
parseContents(crf, source);
if (tag != "contents")
throw badArchive("expected tag 'contents', got '%s'", tag);
parseContents(crf, source);
expectTag(")");
});