Fix error message

This commit is contained in:
Eelco Dolstra 2016-04-28 14:12:10 +02:00
parent cc804d0dc6
commit ce5776758d

View file

@ -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();