forked from lix-project/lix
wopAddToStore: Throw to clarify unused refs
Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
parent
c602ebfb34
commit
ecc8088cb7
1 changed files with 2 additions and 0 deletions
|
@ -366,6 +366,8 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
|
|||
return store->addTextToStore(name, contents, refs);
|
||||
},
|
||||
[&](FixedOutputHashMethod &fohm) -> StorePath {
|
||||
if (!refs.empty())
|
||||
throw UnimplementedError("cannot yet have refs with flat or nar-hashed data");
|
||||
return store->addToStoreFromDump(source, name, fohm.fileIngestionMethod, fohm.hashType);
|
||||
},
|
||||
}, contentAddressMethod);
|
||||
|
|
Loading…
Reference in a new issue