1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-09 07:53: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:
Eelco Dolstra 2025-07-04 15:21:31 +02:00
parent d4f67fd46d
commit eb97d8c170

View file

@ -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());
} }