Show a proper error message for unimplemented binary cache operations
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user