Merge "feat(libstore): print the first line of stdout of SSH in case of failure" into main
This commit is contained in:
commit
4ebbd4362f
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ std::unique_ptr<SSHMaster::Connection> SSHMaster::startCommand(const std::string
|
||||||
} catch (EndOfFile & e) { }
|
} catch (EndOfFile & e) { }
|
||||||
|
|
||||||
if (reply != "started") {
|
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);
|
throw Error("failed to start SSH connection to '%s'", host);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue