diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-27 18:40:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 18:40:57 +0200 |
commit | 86805a2c0a25f5ceefac0d64e64ba57ace73b7f5 (patch) | |
tree | c9b28ba4c468446911f8bc5411933a334b1fe184 /src/libexpr/primops/fetchTree.cc | |
parent | a5f7d310dd10fe86b6f6aa1c2771c30f113741d4 (diff) | |
parent | 43f2bd8dc5950c38a817242884870f344a84a291 (diff) |
Merge pull request #3738 from obsidiansystems/hash-always-has-type
Hash always has a valid type
Diffstat (limited to 'src/libexpr/primops/fetchTree.cc')
-rw-r--r-- | src/libexpr/primops/fetchTree.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchTree.cc b/src/libexpr/primops/fetchTree.cc index 6a796f3d3..5f480d919 100644 --- a/src/libexpr/primops/fetchTree.cc +++ b/src/libexpr/primops/fetchTree.cc @@ -159,7 +159,7 @@ static void fetch(EvalState & state, const Pos & pos, Value * * args, Value & v, : hashFile(htSHA256, path); if (hash != *expectedHash) throw Error((unsigned int) 102, "hash mismatch in file downloaded from '%s':\n wanted: %s\n got: %s", - *url, expectedHash->to_string(Base32, true), hash.to_string(Base32, true)); + *url, expectedHash->to_string(Base32, true), hash->to_string(Base32, true)); } if (state.allowedPaths) |