diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-23T16·05+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-23T16·05+0200 |
commit | 4c34d384e68ce7e2c949a7588d80bbe7d5a96440 (patch) | |
tree | 7a60f33812b8009e105bd43ce7cc1f19dec413b2 /src/libstore/build.cc | |
parent | a28b4445a4eb8108dfc028083d3939d5f3a42685 (diff) |
If hashes do not match, print them in base-32 for SHA-1/SHA-256
Fixes #57.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |