mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
If a .drv cannot be parsed, show its path
Otherwise you just get ‘expected string `Derive(['’ which isn't very helpful.
This commit is contained in:
parent
e0a947cde6
commit
dfa2f77d2e
7 changed files with 22 additions and 10 deletions
|
@ -1041,7 +1041,7 @@ void expect(std::istream & str, const string & s)
|
|||
char s2[s.size()];
|
||||
str.read(s2, s.size());
|
||||
if (string(s2, s.size()) != s)
|
||||
throw Error(format("expected string `%1%'") % s);
|
||||
throw FormatError(format("expected string `%1%'") % s);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue