diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-03-20 15:17:59 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-03-20 15:25:26 +0100 |
commit | 1aca195e52d4fbf76908e6588b55ed8b5b25cfc8 (patch) | |
tree | 54c34371afebf63b886d3f5a9e747d5d237e0ab7 /src/libutil/util.hh | |
parent | 78d0c72b52835161fd15058b111aa05d69ce062b (diff) |
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.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 85952535d..743d23861 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -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. */ |