Hack to get SSH error messages from build-remote

E.g.

  cannot build on 'ssh://mac1': cannot connect to 'mac1': bash: nix-store: command not found
  cannot build on 'ssh://mac2': cannot connect to 'mac2': Host key verification failed.
  cannot build on 'ssh://mac3': cannot connect to 'mac3': Received disconnect from 213... port 6001:2: Too many authentication failures
  Authentication failed.
This commit is contained in:
Eelco Dolstra 2018-03-20 15:17:59 +01:00
parent 78d0c72b52
commit 1aca195e52
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 33 additions and 7 deletions

View file

@ -151,9 +151,9 @@ MakeError(EndOfFile, Error)
/* Read a file descriptor until EOF occurs. */
string drainFD(int fd);
string drainFD(int fd, bool block = true);
void drainFD(int fd, Sink & sink);
void drainFD(int fd, Sink & sink, bool block = true);
/* Automatic cleanup of resources. */