Merge "feat(libstore): print the first line of stdout of SSH in case of failure" into main

This commit is contained in:
Raito Bezarius 2024-05-10 19:33:36 +00:00 committed by Gerrit Code Review
commit 4ebbd4362f

View file

@ -110,7 +110,7 @@ std::unique_ptr<SSHMaster::Connection> SSHMaster::startCommand(const std::string
} catch (EndOfFile & e) { }
if (reply != "started") {
printTalkative("SSH stdout first line: %s", reply);
warn("SSH to '%s' failed, stdout first line: '%s'", host, reply);
throw Error("failed to start SSH connection to '%s'", host);
}
}