aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-07 18:51:01 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-07 18:51:01 +0000
commit8f92bb5ad9856daaa8488a5dad206b980a2aacb5 (patch)
tree6a3470a7ac7bb85580116dc3dad50d597c95a5f9 /src/libstore/build.cc
parent46f9dd56da7d2af82148c47e40108f3c11ffe4d7 (diff)
parentf7ba16f9cbc27b141f1797a7c4f1fd3243f31683 (diff)
Merge branch 'drv-outputs-map-allow-missing' of github.com:obsidiansystems/nix into templated-daemon-protocol
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index e1c360338..d052d3c4c 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -4880,8 +4880,17 @@ void Worker::run(const Goals & _topGoals)
waitForInput();
else {
if (awake.empty() && 0 == settings.maxBuildJobs)
- throw Error("unable to start any build; either increase '--max-jobs' "
- "or enable remote builds");
+ {
+ if (getMachines().empty())
+ throw Error("unable to start any build; either increase '--max-jobs' "
+ "or enable remote builds."
+ "\nhttps://nixos.org/nix/manual/#chap-distributed-builds");
+ else
+ throw Error("unable to start any build; remote machines may not have "
+ "all required system features."
+ "\nhttps://nixos.org/nix/manual/#chap-distributed-builds");
+
+ }
assert(!awake.empty());
}
}