* 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.
This commit is contained in:
Eelco Dolstra 2009-10-08 12:29:20 +00:00
parent 71bc5b14a0
commit ee31b6e3df

View file

@ -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();