Skip to content

Commit

Permalink
Restore job type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Mar 4, 2020
1 parent 69a6f34 commit 123bee1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hydra-eval-jobs/hydra-eval-jobs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ static void worker(
reply["attrs"] = std::move(attrs);
}

else if (v->type == tNull)
;

else throw TypeError("attribute '%s' is %s, which is not supported", attrPath, showType(*v));

} catch (EvalError & e) {
reply["error"] = filterANSIEscapes(e.msg(), true);
}
Expand Down

0 comments on commit 123bee1

Please sign in to comment.