From 4c34d384e68ce7e2c949a7588d80bbe7d5a96440 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 23 Oct 2012 18:05:50 +0200 Subject: If hashes do not match, print them in base-32 for SHA-1/SHA-256 Fixes #57. --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/build.cc') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 61abd2ed216f..3a06aa1fca44 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2228,7 +2228,7 @@ void DerivationGoal::computeClosure() if (h != h2) throw BuildError( format("output path `%1%' should have %2% hash `%3%', instead has `%4%'") - % path % i->second.hashAlgo % printHash(h) % printHash(h2)); + % path % i->second.hashAlgo % printHash16or32(h) % printHash16or32(h2)); } /* Get rid of all weird permissions. */ -- cgit 1.4.1