mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +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:
commit
38927ae9c7
1 changed files with 4 additions and 2 deletions
|
|
@ -187,7 +187,9 @@ static void parse(FileSystemObjectSink & sink, Source & source, const CanonPath
|
||||||
tag = getString();
|
tag = getString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tag == "contents")
|
if (tag != "contents")
|
||||||
|
throw badArchive("expected tag 'contents', got '%s'", tag);
|
||||||
|
|
||||||
parseContents(crf, source);
|
parseContents(crf, source);
|
||||||
|
|
||||||
expectTag(")");
|
expectTag(")");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue