Skip to content

Commit eb97d8c

Browse files
committed
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'.
1 parent d4f67fd commit eb97d8c

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

src/libstore/build/worker.cc

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -362,23 +362,14 @@ void Worker::run(const Goals & _topGoals)
362362
else if (awake.empty() && 0U == settings.maxBuildJobs) {
363363
if (getMachines().empty())
364364
throw Error(
365-
R"(
366-
Unable to start any build;
367-
either increase '--max-jobs' or enable remote builds.
368-
369-
For more information run 'man nix.conf' and search for '/machines'.
370-
)"
371-
);
365+
"Unable to start any build; either increase '--max-jobs' or enable remote builds.\n"
366+
"\n"
367+
"For more information run 'man nix.conf' and search for '/machines'.");
372368
else
373369
throw Error(
374-
R"(
375-
Unable to start any build;
376-
remote machines may not have all required system features.
377-
378-
For more information run 'man nix.conf' and search for '/machines'.
379-
)"
380-
);
381-
370+
"Unable to start any build; remote machines may not have all required system features.\n"
371+
"\n"
372+
"For more information run 'man nix.conf' and search for '/machines'.");
382373
} else assert(!awake.empty());
383374
}
384375

0 commit comments

Comments
 (0)