diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-16 20:17:21 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-12-16 20:17:21 +0100 |
commit | ad6b738ed89069deec5eb2d0fb83668bdee08714 (patch) | |
tree | 0c9ca0b6aa3f831966dfa3c4306ecb3f22fc276b /src/libstore/ssh.cc | |
parent | 4947e0a91aeefd898e5b976733e70f1fbc1c0ae7 (diff) | |
parent | 410acd29c046ae7296d882ee4750441d4ff29955 (diff) |
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libstore/ssh.cc')
-rw-r--r-- | src/libstore/ssh.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/ssh.cc b/src/libstore/ssh.cc index ac3ccd63d..2ee7115c5 100644 --- a/src/libstore/ssh.cc +++ b/src/libstore/ssh.cc @@ -62,7 +62,8 @@ std::unique_ptr<SSHMaster::Connection> SSHMaster::startCommand(const std::string args.push_back(command); execvp(args.begin()->c_str(), stringsToCharPtrs(args).data()); - throw SysError("executing '%s' on '%s'", command, host); + // could not exec ssh/bash + throw SysError("unable to execute '%s'", args.front()); }); @@ -108,7 +109,7 @@ Path SSHMaster::startMaster() addCommonSSHOpts(args); execvp(args.begin()->c_str(), stringsToCharPtrs(args).data()); - throw SysError("starting SSH master"); + throw SysError("unable to execute '%s'", args.front()); }); out.writeSide = -1; |