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

Show a proper error message for unimplemented binary cache operations

This commit is contained in:
Eelco Dolstra 2016-02-24 14:57:30 +01:00
parent 45c83e5f9b
commit ba0a81d14f
2 changed files with 24 additions and 17 deletions

View file

@ -33,6 +33,11 @@ void BinaryCacheStore::init()
upsertFile(cacheInfoFile, "StoreDir: " + settings.nixStore + "\n");
}
void BinaryCacheStore::notImpl()
{
throw Error("operation not implemented for binary cache stores");
}
const BinaryCacheStore::Stats & BinaryCacheStore::getStats()
{
return stats;