mirror of
https://github.com/NixOS/nix
synced 2025-07-09 12:03:55 +02:00
Fix indentation of "Unable to start any build" error message
The use of R"(...)" added a bunch of unnecessary whitespace, e.g. error: Unable to start any build; either increase '--max-jobs' or enable remote builds. For more information run 'man nix.conf' and search for '/machines'. Now we get error: Unable to start any build; either increase '--max-jobs' or enable remote builds. For more information run 'man nix.conf' and search for '/machines'.
This commit is contained in:
parent
d4f67fd46d
commit
eb97d8c170
1 changed files with 6 additions and 15 deletions
|
@ -362,23 +362,14 @@ void Worker::run(const Goals & _topGoals)
|
||||||
else if (awake.empty() && 0U == settings.maxBuildJobs) {
|
else if (awake.empty() && 0U == settings.maxBuildJobs) {
|
||||||
if (getMachines().empty())
|
if (getMachines().empty())
|
||||||
throw Error(
|
throw Error(
|
||||||
R"(
|
"Unable to start any build; either increase '--max-jobs' or enable remote builds.\n"
|
||||||
Unable to start any build;
|
"\n"
|
||||||
either increase '--max-jobs' or enable remote builds.
|
"For more information run 'man nix.conf' and search for '/machines'.");
|
||||||
|
|
||||||
For more information run 'man nix.conf' and search for '/machines'.
|
|
||||||
)"
|
|
||||||
);
|
|
||||||
else
|
else
|
||||||
throw Error(
|
throw Error(
|
||||||
R"(
|
"Unable to start any build; remote machines may not have all required system features.\n"
|
||||||
Unable to start any build;
|
"\n"
|
||||||
remote machines may not have all required system features.
|
"For more information run 'man nix.conf' and search for '/machines'.");
|
||||||
|
|
||||||
For more information run 'man nix.conf' and search for '/machines'.
|
|
||||||
)"
|
|
||||||
);
|
|
||||||
|
|
||||||
} else assert(!awake.empty());
|
} else assert(!awake.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue