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:
parent
45c83e5f9b
commit
ba0a81d14f
2 changed files with 24 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue