requireFile: exit with non-zero error message
Since the script running is a failure condition, we should fail the
build properly, not leaving it up to the missing output to determine
that the build went wrong. This should partly address #38952 — nix
build will print out the build log on non-zero exits.
commit4a30f2efecc8bea1ad605388baa5db7668a9f580
authorLinus Heckemann <git@sphalerite.org>
dateSun 15 Apr 2018, 13:58 (9 years ago)
parent1b480c8
pkgs/build-support/trivial-builders.nix+1
@@ -170,6 +170,7 @@ rec {
170170 ***
171171
172172 _EOF_
173+ exit 1
173174 '';
174175 };
175176