lordmauve / chopsticks

Chopsticks is an orchestration library: it lets you execute Python code on remote hosts over SSH.
https://chopsticks.readthedocs.io/
Apache License 2.0
158 stars 16 forks source link

Buffer stderr until connected #29

Open lordmauve opened 7 years ago

lordmauve commented 7 years ago

In case of connection failures, the error message raised by Chopsticks is usually just "Unexpected EOF on stream".

Until a connection is established, Chopsticks could collect stderr lines, and report them as part of this error message. This would avoid having to piece together the causes of failure from both the stack trace and stderr information.

This will bevery useful for debugging especially with recursive tunnels.