diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-11-10T15·03+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-11-10T15·03+0100 |
commit | d436e44ae3a7fc310660db0cc3078a9c1c9318e4 (patch) | |
tree | 1c635a6edbf52a72bef012dffc4bda18d75aa631 /perl/lib/Nix/CopyClosure.pm | |
parent | 087581a6428920f781008815cac4bec6a739a8aa (diff) |
SSH.pm: Print a friendlier message if connecting fails
"got EOF while expecting 8 bytes from remote side" is not very helpful.
Diffstat (limited to 'perl/lib/Nix/CopyClosure.pm')
-rw-r--r-- | perl/lib/Nix/CopyClosure.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl/lib/Nix/CopyClosure.pm b/perl/lib/Nix/CopyClosure.pm index 1520f1012c7d..800feb3b413a 100644 --- a/perl/lib/Nix/CopyClosure.pm +++ b/perl/lib/Nix/CopyClosure.pm @@ -57,6 +57,7 @@ sub copyTo { if ($@) { chomp $@; warn "$@; falling back to old closure copying method\n"; + $@ = ""; return oldCopyTo(@_); } |