about summary refs log tree commit diff
path: root/src/nix-build
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2018-09-01T01·03-0400
committerGraham Christensen <graham@grahamc.com>2018-09-01T01·03-0400
commit87702532d2aa24394493ccd12e77811cc2d0893c (patch)
tree976466d2ca1094dfba02cfa8b4dc56912e29eb52 /src/nix-build
parentb7bb627f674ce90d1a543bf3eab80b834bb592b2 (diff)
nix-build: Print stats even in failing builds
Diffstat (limited to 'src/nix-build')
-rwxr-xr-xsrc/nix-build/nix-build.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index 54d6b1db7366..94d3a27560fe 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -305,6 +305,8 @@ void mainWrapped(int argc, char * * argv)
         }
     }
 
+    state->printStats();
+
     auto buildPaths = [&](const PathSet & paths) {
         /* Note: we do this even when !printMissing to efficiently
            fetch binary cache data. */
@@ -495,7 +497,6 @@ void mainWrapped(int argc, char * * argv)
 
         for (auto & path : outPaths)
             std::cout << path << '\n';
-        state->printStats();
     }
 }