From ea65ae0f9c3461f9b098c8757e01f5c3add8b40c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 11 May 2017 13:59:47 +0200 Subject: [PATCH] Tweak error message --- src/libstore/download.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/download.cc b/src/libstore/download.cc index 93519ec66..5390bdbf5 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -690,7 +690,7 @@ Path Downloader::downloadCached(ref 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; }