about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-28T12·12+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-28T12·12+0200
commitce5776758d8f40ad5176e70916c71da3194dfcc3 (patch)
tree20428781613f89653cd7e81565bfda9f677205e4 /src/libstore
parentcc804d0dc6c2c565ce9df63ae8557e2696eb2d59 (diff)
Fix error message
Diffstat (limited to 'src/libstore')
-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();