diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-22 14:21:45 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-22 14:21:45 +0100 |
commit | bb1034316d7dcafa2ab45762a6b6509e922c4c21 (patch) | |
tree | 7da0208e56ea292fc09910308f9f891002e6bf21 /src/libstore/local-fs-store.cc | |
parent | 712b616a8443b940e94ac443499246f4de6ee5cd (diff) |
Don't overload dumpPath()
Diffstat (limited to 'src/libstore/local-fs-store.cc')
-rw-r--r-- | src/libstore/local-fs-store.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstore/local-fs-store.cc b/src/libstore/local-fs-store.cc index 87c216ec9..8b72c05b7 100644 --- a/src/libstore/local-fs-store.cc +++ b/src/libstore/local-fs-store.cc @@ -69,9 +69,11 @@ ref<FSAccessor> LocalFSStore::getFSAccessor() return make_ref<LocalStoreAccessor>(ref<Store>(shared_from_this())); } -void LocalFSStore::dumpPath(const Path & path, Sink & sink) +void LocalFSStore::narFromPath(const Path & path, Sink & sink) { - nix::dumpPath(path, sink); + if (!isValidPath(path)) + throw Error(format("path ā%sā is not valid") % path); + dumpPath(path, sink); } } |