aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/build.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 061682377..866964a4c 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1608,8 +1608,8 @@ void DerivationGoal::buildDone()
outputLocks.unlock();
} catch (BuildError & e) {
- if (!hook)
- printError(e.msg());
+ printError(e.msg());
+
outputLocks.unlock();
BuildResult::Status st = BuildResult::MiscFailure;