mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
SSH.pm: Print a friendlier message if connecting fails
"got EOF while expecting 8 bytes from remote side" is not very helpful.
This commit is contained in:
parent
087581a642
commit
d436e44ae3
2 changed files with 12 additions and 4 deletions
|
@ -57,6 +57,7 @@ sub copyTo {
|
|||
if ($@) {
|
||||
chomp $@;
|
||||
warn "$@; falling back to old closure copying method\n";
|
||||
$@ = "";
|
||||
return oldCopyTo(@_);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue