diff --git a/src/libstore/gc-store.cc b/src/libstore/gc-store.cc index 4516cc744..dc2b82166 100644 --- a/src/libstore/gc-store.cc +++ b/src/libstore/gc-store.cc @@ -6,7 +6,7 @@ GcStore & GcStore::require(Store & store) { auto * gcStore = dynamic_cast(&store); if (!gcStore) - throw UsageError("Garbage collection not supported by this store"); + throw UsageError("Garbage collection not supported by store '%s'", store.getUri()); return *gcStore; }