diff options
-rw-r--r-- | nix/libstore/build.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index e72fb50d8e..be19dd8b61 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -1451,7 +1451,8 @@ void DerivationGoal::buildDone() outputLocks.unlock(); } catch (BuildError & e) { - printMsg(lvlError, e.msg()); + if (!hook) + printMsg(lvlError, e.msg()); outputLocks.unlock(); buildUser.release(); |