diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-26T21·36-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-26T21·36-0400 |
commit | 50395b71a90314abfcc39d8343dbaa8e9aa199a6 (patch) | |
tree | 8f424e4cff92252bd4dfacb3c8f7ec0bd5954ec8 /src/libstore | |
parent | e3ce54cceedb9a3144c4eccfbafd63ed765d8913 (diff) |
Fix the substituter tests
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/local-store.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index ebfcc946716a..58ce691ebb07 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -999,7 +999,8 @@ void LocalStore::querySubstitutablePathInfos(const Path & substituter, while (true) { Path path = readLine(run.from); if (path == "") break; - assert(paths.find(path) != paths.end()); + if (paths.find(path) == paths.end()) + throw Error(format("got unexpected path `%1%' from substituter") % path); paths.erase(path); SubstitutablePathInfo & info(infos[path]); info.deriver = readLine(run.from); |