about summary refs log tree commit diff
path: root/src/libstore/binary-cache-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/binary-cache-store.cc')
-rw-r--r--src/libstore/binary-cache-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc
index 93863b95fe7f..6806c3e4ae26 100644
--- a/src/libstore/binary-cache-store.cc
+++ b/src/libstore/binary-cache-store.cc
@@ -144,7 +144,7 @@ void BinaryCacheStore::narFromPath(const Path & storePath, Sink & sink)
     else if (info->compression == "xz")
         nar = decompressXZ(*nar);
     else
-        throw Error(format("unknown NAR compression type ‘%1%’") % nar);
+        throw Error(format("unknown NAR compression type ‘%1%’") % info->compression);
 
     stats.narReadBytes += nar->size();