From eb97d8c17048b075acebcba7b574611151a79cd7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 4 Jul 2025 15:21:31 +0200 Subject: [PATCH] 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'. --- src/libstore/build/worker.cc | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/src/libstore/build/worker.cc b/src/libstore/build/worker.cc index 12d4aaa2d..a3419d9da 100644 --- a/src/libstore/build/worker.cc +++ b/src/libstore/build/worker.cc @@ -362,23 +362,14 @@ void Worker::run(const Goals & _topGoals) else if (awake.empty() && 0U == settings.maxBuildJobs) { if (getMachines().empty()) throw Error( - R"( - Unable to start any build; - either increase '--max-jobs' or enable remote builds. - - For more information run 'man nix.conf' and search for '/machines'. - )" - ); + "Unable to start any build; either increase '--max-jobs' or enable remote builds.\n" + "\n" + "For more information run 'man nix.conf' and search for '/machines'."); else throw Error( - R"( - Unable to start any build; - remote machines may not have all required system features. - - For more information run 'man nix.conf' and search for '/machines'. - )" - ); - + "Unable to start any build; remote machines may not have all required system features.\n" + "\n" + "For more information run 'man nix.conf' and search for '/machines'."); } else assert(!awake.empty()); }