Tweak error message

This commit is contained in:
Eelco Dolstra 2017-05-11 13:59:47 +02:00
parent 1a8e15053a
commit ea65ae0f9c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -690,7 +690,7 @@ Path Downloader::downloadCached(ref<Store> store, const string & url_, bool unpa
}
if (expectedStorePath != "" && storePath != expectedStorePath)
throw nix::Error(format("hash mismatch in file downloaded from %s") % url);
throw nix::Error("store path mismatch in file downloaded from %s", url);
return storePath;
}