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.
This commit is contained in:
Linus Heckemann 2018-04-15 13:58:05 +01:00
parent 1b480c8538
commit 4a30f2efec

View File

@ -170,6 +170,7 @@ rec {
***
_EOF_
exit 1
'';
};