From ee31b6e3dfa3a4f233be1452e58e2cb060f79eb8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 8 Oct 2009 12:29:20 +0000 Subject: [PATCH] * Don't catch all errors. Some errors mess up the connection with the Nix daemon: at `debootstrap' [system = "i686-linux"]: getting attributes of path `/nix/store/dmhydkv6y1l4wpz4wq8qkf0fnlrhjr3l-svn-export/pkgs/tools/misc/debootstrap/subst.patch': No such file or directory at `debootstrap' [system = "x86_64-linux"]: writing to file: Broken pipe etc. --- src/c/hydra_eval_jobs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/hydra_eval_jobs.cc b/src/c/hydra_eval_jobs.cc index b2efabd8..00055a50 100644 --- a/src/c/hydra_eval_jobs.cc +++ b/src/c/hydra_eval_jobs.cc @@ -179,7 +179,7 @@ static void findJobs(EvalState & state, XMLWriter & doc, { try { findJobsWrapped(state, doc, argsUsed, argsLeft, e, attrPath); - } catch (Error & e) { + } catch (EvalError & e) { XMLAttrs xmlAttrs; xmlAttrs["location"] = attrPath; xmlAttrs["msg"] = e.msg();