diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index e2e78d7..27be870 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -366,10 +366,14 @@ static void worker(ref state, Bindings &autoArgs, AutoCloseFD &to, } auto s = fromReader.readLine(); - if (s == "exit") + if (s == "exit") { break; - if (!hasPrefix(s, "do ")) + } + if (!hasPrefix(s, "do ")) { + fprintf(stderr, "worker error: received invalid command '%s'\n", + s.data()); abort(); + } auto path = json::parse(s.substr(3)); auto attrPathS = attrPathJoin(path);