diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc index f879a580e..faebd3c43 100644 --- a/src/libstore/build/derivation-goal.cc +++ b/src/libstore/build/derivation-goal.cc @@ -1009,7 +1009,7 @@ void DerivationGoal::buildDone() if (diskFull) msg += "\nnote: build failure may have been caused by lack of free disk space"; - throw BuildError(msg); + throw BuildError("%s", msg); } /* Compute the FS closure of the outputs and register them as