Skip to content

Commit

Permalink
libstore: display the original hash encoding on mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Jun 18, 2020
1 parent 6d64f19 commit f47f7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3745,7 +3745,7 @@ void DerivationGoal::registerOutputs()
worker.hashMismatch = true;
delayedException = std::make_exception_ptr(
BuildError("hash mismatch in fixed-output derivation '%s':\n wanted: %s\n got: %s",
worker.store.printStorePath(dest), h.to_string(SRI), h2.to_string(SRI)));
worker.store.printStorePath(dest), h.to_string(h.encoding), h2.to_string(h.encoding)));

Path actualDest = worker.store.Store::toRealPath(dest);

Expand Down

0 comments on commit f47f7ce

Please sign in to comment.