aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/log-store.cc
blob: 56aec91f24f0962f0e38832aa2b15a5160090e56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "log-store.hh"

namespace nix {

LogStore & LogStore::require(Store & store)
{
    auto * gcStore = dynamic_cast<LogStore *>(&store);
    if (!gcStore)
        throw UsageError("Build log storage and retrieval not supported by store '%s'", store.getUri());
    return *gcStore;
}

}