aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2020-05-11 18:14:32 +0200
committerGitHub <noreply@github.com>2020-05-11 18:14:32 +0200
commit5bdb67c84308a8cc78ac633d27b94eca87ea4390 (patch)
tree9eae823214477ed2dfd87ccc1fbd86c701ddae2b /src/libstore/build.cc
parent23e5b48ca4ca1910b82932d6d7a4546d007d40b7 (diff)
parent1d8144e36b18d3467f1b29b80800ed3eb9b876c6 (diff)
Merge pull request #3568 from kolloch/outputHashModeError
libstore/build.cc: more explicit error about form of output
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 6258bcb33..73e09cb10 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -3681,7 +3681,8 @@ void DerivationGoal::registerOutputs()
/* The output path should be a regular file without execute permission. */
if (!S_ISREG(st.st_mode) || (st.st_mode & S_IXUSR) != 0)
throw BuildError(
- format("output path '%1%' should be a non-executable regular file") % path);
+ format("output path '%1%' should be a non-executable regular file "
+ "since recursive hashing is not enabled (outputHashMode=flat)") % path);
}
/* Check the hash. In hash mode, move the path produced by