diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-24T13·57+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-24T13·57+0100 |
commit | ba0a81d14f1c3d0635d4b6cad47e4e26b5c5a6ca (patch) | |
tree | 498e2f03636f6c13897932b2883b805f782e3d79 /src/libstore/binary-cache-store.cc | |
parent | 45c83e5f9b0faef97e99ecabab8f568799d0d801 (diff) |
Show a proper error message for unimplemented binary cache operations
Diffstat (limited to 'src/libstore/binary-cache-store.cc')
-rw-r--r-- | src/libstore/binary-cache-store.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc index 6bea0e6c903d..6d40c70a3675 100644 --- a/src/libstore/binary-cache-store.cc +++ b/src/libstore/binary-cache-store.cc @@ -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; |