From e7c30b306dacb18588f5cef36cf1bdadd6e6be69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 10 Dec 2023 16:50:13 +0100 Subject: [PATCH] don't fail nix-eval-jobs on eval errors This error handling was copied by accident in https://github.com/nix-community/nix-eval-jobs/pull/277/commits/5c764d4a67feceae1848414fd9434e79120884e6#diff-a79ded172fd76747492a417a39848b6c25c14238e65971e6a05fe81706d5048fR622 --- src/nix-eval-jobs.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index 95cf673..87eb456 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -190,10 +190,6 @@ std::function collector(Sync &state_, json response; try { response = json::parse(respString); - if (response.find("error") != response.end()) { - throw Error("worker error: %s", - (std::string)response["error"]); - } } catch (const json::exception &e) { throw Error("Received invalid JSON from worker: %s '%s'", e.what(), respString);