Merge pull request #7264 from patricksjackson/remote-brackets

build-remote: Add brackets to error message
This commit is contained in:
Eelco Dolstra 2022-11-07 16:59:29 +01:00 committed by GitHub
commit b378876894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,12 +186,12 @@ static int main_build_remote(int argc, char * * argv)
// build the hint template.
std::string errorText =
"Failed to find a machine for remote build!\n"
"derivation: %s\nrequired (system, features): (%s, %s)";
"derivation: %s\nrequired (system, features): (%s, [%s])";
errorText += "\n%s available machines:";
errorText += "\n(systems, maxjobs, supportedFeatures, mandatoryFeatures)";
for (unsigned int i = 0; i < machines.size(); ++i)
errorText += "\n(%s, %s, %s, %s)";
errorText += "\n([%s], %s, [%s], [%s])";
// add the template values.
std::string drvstr;