about summary refs log tree commit diff
path: root/src/libstore/binary-cache-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-24T13·57+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-24T13·57+0100
commitba0a81d14f1c3d0635d4b6cad47e4e26b5c5a6ca (patch)
tree498e2f03636f6c13897932b2883b805f782e3d79 /src/libstore/binary-cache-store.cc
parent45c83e5f9b0faef97e99ecabab8f568799d0d801 (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.cc5
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;