about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 2e3875551d4f..232059e70db0 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1469,12 +1469,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);