1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 20:01:15 +02:00

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") else if (info->compression == "xz")
nar = decompressXZ(*nar); nar = decompressXZ(*nar);
else else
throw Error(format("unknown NAR compression type %1%") % nar); throw Error(format("unknown NAR compression type %1%") % info->compression);
stats.narReadBytes += nar->size(); stats.narReadBytes += nar->size();