Merge pull request #707 from peti/master
src/libstore/build.cc: clarify error message for hash mismatches
This commit is contained in:
commit
33f2fbcb62
|
@ -2708,7 +2708,7 @@ void DerivationGoal::registerOutputs()
|
|||
Hash h2 = recursive ? hashPath(ht, actualPath).first : hashFile(ht, actualPath);
|
||||
if (h != h2)
|
||||
throw BuildError(
|
||||
format("output path ‘%1%’ should have %2% hash ‘%3%’, instead has ‘%4%’")
|
||||
format("Nix expects output path ‘%1%’ to have %2% hash ‘%3%’, instead it has ‘%4%’")
|
||||
% path % i.second.hashAlgo % printHash16or32(h) % printHash16or32(h2));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue