From 50395b71a90314abfcc39d8343dbaa8e9aa199a6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 26 Jul 2012 17:36:07 -0400 Subject: Fix the substituter tests --- src/libstore/local-store.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libstore/local-store.cc') diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index ebfcc94671..58ce691ebb 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); -- cgit 1.4.1