summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nix/libstore/build.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc
index be19dd8b61..05024f5194 100644
--- a/nix/libstore/build.cc
+++ b/nix/libstore/build.cc
@@ -1481,12 +1481,9 @@ void DerivationGoal::buildDone()
                (e.g., fetchurl not being able to access the network).
                Hook errors (like communication problems with the
                remote machine) shouldn't be cached either. */
-            if (/* settings.cacheFailure && */ !fixedOutput && !diskFull)
-            {
-                printMsg(lvlError, "REG");
+            if (settings.cacheFailure && !fixedOutput && !diskFull)
                 foreach (DerivationOutputs::iterator, i, drv.outputs)
                     worker.store.registerFailedPath(i->second.path);
-            }
         }
 
         amDone(ecFailed);