diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2018-04-20T19·07+0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2018-04-20T19·07+0200 |
commit | 13d4d1c0a2489a5fab506da57149863daf7f01b1 (patch) | |
tree | c639f67e35c4264e19e6ac63a73ab1e5ff5ddaa7 | |
parent | 9296186c759f1ef301e20fc7e246f104a206efa4 (diff) |
download: make hash mismatch error consistent with fetchurl
-rw-r--r-- | src/libstore/download.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc index 4d7f5690192d..538c558f5501 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -730,8 +730,8 @@ Path Downloader::downloadCached(ref<Store> store, const string & url_, bool unpa Hash gotHash = unpack ? hashPath(expectedHash.type, store->toRealPath(storePath)).first : hashFile(expectedHash.type, store->toRealPath(storePath)); - throw nix::Error("hash mismatch in file downloaded from '%s': expected hash '%s', got '%s'", - url, expectedHash.to_string(), gotHash.to_string()); + throw nix::Error("hash mismatch in file downloaded from '%s': got hash '%s' instead of the expected hash '%s'", + url, gotHash.to_string(), expectedHash.to_string()); } return store->toRealPath(storePath); |